Codeine belongs into a class of medications called opiate (narcotic) analgesics and to a class of medications called antitussives. When codeine is used to treat pain, it works by shifting the way the brain and anxious system respond to pain. When codeine is used to lessen coughing, it works by reducing the exercise in the Section of the brain that