Codeine is an opioid analgesic medication commonly prescribed for the relief of mild to moderate pain. Derived from the opium poppy plant, codeine is often used as a pain reliever and cough suppressant due to its ability to act on the central nervous system.