Tramadol is a prescription medication used for the relief of moderate to moderately severe pain. It is often prescribed following surgery, injury, or for patients suffering from chronic pain conditions such as arthritis, fibromyalgia, or back pain. Classified as an opioid analgesic, Tramadol works in the brain to change how the body senses and responds to pain.