Opiates are a class of drugs naturally found in the poppy plant that produce various brain effects, including feelings of pleasure and pain relief in the body. Opioids include these natural opiates as well as synthetic opioid drugs. Healthcare providers legally prescribe some opioids for moderate, severe and chronic pain management. Other opioids are illegal, such as heroin.