Tramadol is a prescription medication that is used to treat moderate to moderately severe pain. It belongs to a class of drugs known as opioid analgesics and works by binding to certain receptors in the brain that control the perception of pain. In addition to its pain-relieving effects, tramadol also has some properties that affect neurotransmitters like serotonin and norepinephrine.