Codeine belongs to a class of medications called opiate (narcotic) analgesics also to a class of medications called antitussives. When codeine is used to treat pain, it works by transforming the way in which the brain and anxious system respond to pain. When codeine is used to lessen coughing, it works by decreasing the exercise inside the A part o