An opiate is a type of alkaloid that is found in the poppy plant. Opiates are present in many drugs, such as opium and heroin.