Codeine belongs to some class of medications called opiate (narcotic) analgesics and also to a class of medications called antitussives. When codeine is used to treat pain, it works by changing the way in which the brain and anxious system respond to pain. When codeine is used to reduce coughing, it works by decreasing the action within the A part