Codeine is a psychoactive opioid that has been widely used as a cough suppressant, pain reliever, and antitussive. It has also been used to treat diarrhea, ulcers, and menstrual cramps. Codeine may also be abused by people who use it recreationally or in combination with other substances