Opioids are substances that act on opioid receptors to produce morphine-like effects, and are highly addictive. Medically they are primarily used for pain relief, including anesthesia, or for terminal cancer patients.