Opioids are narcotics, drugs that numb pain. They work by attaching to a part of cells called receptors found in the brain, spinal cord, and other areas of the body. Opioids lower the number of pain messages relayed to the brain, which eases the pain sensations.