Opium is one of the most useful and complex drugs in medical history. Made from the juice of the unripe seed capsule of the opium poppy, it contains several valuable alkaloids. Three of these, morphine, codeine, and thebaine—the last when processed into semisynthetic opioids like oxycodone—have potent analgesic effects.