Codeine or methylmorphine is an opiate used for its analgesic properties. It is also used to treat coughing and diarrhea. It is marketed as the salts codeine sulfate and codeine phosphate. Codeine hydrochloride is more commonly marketed in continental Europe and other regions.