Morphine belongs to the group of medicines called narcotic analgesics (pain medicines). It acts on the central nervous system (CNS) to relieve pain. Morphine extended-release capsules and extended-release tablets should not be used if you need pain medicine for just a short time, such as when recovering from surgery.