Tramadol is a prescription pain medication used to treat moderate to moderately severe pain. It acts as a synthetic opioid, binding to brain receptors that sense pain, and also increases levels of serotonin and norepinephrine, which contribute to pain relief.