Morphine is an opioid medication. An opioid is sometimes called a narcotic. Morphine is used to treat moderate to severe pain. Short-acting formulations ares taken as needed for pain. The extended-release form of morphine is for around-the-clock treatment of pain. This form of morphine is not for use on an as-needed basis for pain.