There are 3 main types of opioids: 1  Natural opiates are alkaloids, nitrogen-containing base chemical compounds that occur in plants such as the opium poppy. Natural opiates include morphine, codeine, and thebaine.  Semi-synthetic/manmade opioids are created in labs from natural opiates.