Opioid analgesics are a class of medications used to manage moderate to severe pain. They work by binding to specific receptors in the brain and spinal cord, thereby altering the perception of pain. Common examples include morphine, oxycodone, and hydrocodone.