Tramadol is an opioid analgesic used for the treatment of moderate to severe pain. It affects the central nervous system by blocking pain signals sent to the brain and altering the perception of pain.