This medication is used to help relieve moderate to severe pain. Morphine belongs to a class of drugs known as opioid (narcotic) analgesics. It works in the brain to change how your body feels and responds to pain.