Codeine (INN) or methylmorphine is an opiate used for its analgesic, antitussive and antidiarrheal properties. It may also be used to treat other conditions as determined by your doctor.