Opioids are a class of drugs naturally found in the opium poppy plant and that work in the brain to produce a variety of effects, including the relief of pain with many of these drugs. Opioids can be prescription medications often referred to as painkillers, or they can be so-called street drugs, such as heroin.