Morphine injection is used to relieve moderate to severe pain. It may also be used before or during surgery with an anesthetic (medicine that puts you to sleep). Morphine belongs to the group of medicines called narcotic analgesics (pain medicines). It acts on the central nervous system (CNS) to relieve pain.