Opioids are painkillers that treat moderate to severe pain. They work by reducing the pain signals sent to the brain. Examples are Codeine, Fentanyl, Morphine, and Oxycodone.