Tramadol hydrochloride (Ultram, Tramal) is a centrally acting opioid analgesic, used in treating moderate to severe pain. The drug has a wide range of applications, including treatment for restless legs syndrome and fibromyalgia. Do not drink alcohol while you are being treated with tramadol.