Codeine is a chemical that belongs to the opioid drug subclass. It is derived from the opium poppy plant and has analgesic (pain-relieving) and antitussive (cough-suppressing) properties. Codeine is thought of as a relatively weak opioid when compared to stronger opioids like morphine or fentanyl.