Codeine is a naturally occurring opiate alkaloid derived from the opium poppy (Papaver somniferum), widely used for its analgesic, antitussive, and mild sedative properties. It was first isolated in 1832 by the French chemist Pierre Jean Robiquet, who sought to identify safer and less addictive alternatives to morphine. Throughout the 19th and early 20th centuries, codeine gained popularity in medical practice for treating moderate pain and cough, often formulated in syrups and combination medications. Over time, increased awareness of opioid dependence led to stricter regulations, but codeine remains an important therapeutic agent when used under proper medical supervision.