Narcotic analgesics (also known as opioid analgesics) are a class of pain-relieving drugs that act on the central nervous system and produce a feeling of euphoria, potentially leading to dependence. Morphine is a naturally occurring opioid, derived from opium.