Opioids come from three sources: the opium poppy plant, chemical synthesis in laboratories, or your own body. The term “opioid” is a broad umbrella covering all substances that bind to opioid receptors in the brain, whether they originated in a flower field, a pharmaceutical lab, or your nervous system. Understanding these distinct origins helps clarify why the word “opioid” gets applied to substances as different as ancient opium and modern fentanyl.
The Opium Poppy: The Original Source
The opium poppy, a flowering plant cultivated for thousands of years, is where the story begins. The plant produces a milky white latex inside its unripe seed pods. This latex contains a group of compounds called alkaloids, and five of them matter most: morphine, codeine, thebaine, noscapine, and papaverine. These alkaloids accumulate in specialized cells that run alongside the plant’s vascular tissues, though they’ve also been found in stems and leaves.
Traditional harvesting looks much the same as it has for centuries. Workers use a multi-bladed knife to make shallow cuts into the seed pods during the afternoon. The latex oozes out and is left overnight to thicken and darken as it coagulates. Before sunrise the next morning, it’s scraped off the pods as a semi-liquid substance called raw opium. Each pod is typically cut three or four times over its lifespan.
Morphine was the first alkaloid isolated from this latex. A German pharmacist named Friedrich Sertürner reported extracting it in 1805, and by 1817 he had tested it in humans and given it the name “morphine,” after Morpheus, the Greek god of dreams. That isolation marked the beginning of modern pharmacology, the first time a single active compound had been pulled from a plant and identified as the source of its effects.
Natural, Semi-Synthetic, and Fully Synthetic
Not all opioids are created the same way, and the terminology reflects that. Drugs derived directly from the poppy with minimal chemical alteration, like morphine and codeine, are sometimes called “opiates” to distinguish them from the broader opioid category. Semi-synthetic opioids start with a plant-derived compound that is then chemically modified in a lab. Fully synthetic opioids are built entirely from non-plant chemicals.
The distinction matters because it shapes how these drugs are produced and how potent they become. Here’s how the three categories break down:
- Natural opiates: Morphine and codeine, extracted directly from poppy latex or dried poppy straw.
- Semi-synthetic opioids: Oxycodone, hydrocodone, and hydromorphone. These are made by chemically converting morphine or thebaine, another poppy alkaloid, into new compounds with different properties. The majority of poppy-derived morphine and thebaine is converted this way into these higher-value drugs.
- Fully synthetic opioids: Fentanyl, methadone, and tramadol. These are designed and built from scratch using laboratory chemicals with no plant material involved.
How Semi-Synthetic Opioids Are Made
Semi-synthetic opioids occupy a middle ground. They begin with a molecule harvested from the poppy, then chemists reshape it. Thebaine, an alkaloid that makes up a smaller fraction of raw opium than morphine, turns out to be an especially useful starting material. On its own, thebaine isn’t a practical painkiller. But through a series of chemical reactions, removing a molecular group here, adding one there, it becomes oxycodone or hydrocodone.
This is why poppy cultivation remains essential to modern pharmaceutical manufacturing. All natural opiates and semi-synthetic opioids currently on the market trace back to the opium poppy. India is one of the few countries that legally grows opium poppies for this purpose and the only country that legally produces opium gum. Other licensed producers include Australia, France, Spain, and Turkey, though most of these countries use what’s called the “poppy straw” method, harvesting and processing the entire dried plant rather than collecting latex by hand.
Fully Synthetic Opioids: Built From Scratch
Fentanyl, the most well-known fully synthetic opioid, was first created in 1960 by Paul Janssen, a Belgian chemist. Its synthesis starts with a commercially available chemical compound and proceeds through a short series of reactions. The process is efficient: each step produces high yields, which partly explains why illicit fentanyl manufacturing has become so widespread. No poppy fields are needed, just precursor chemicals and basic laboratory equipment.
Fentanyl’s potency, roughly 50 to 100 times that of morphine, comes not from a more concentrated plant extract but from the way its molecular shape fits opioid receptors in the brain. Chemists designed it to bind those receptors with extreme precision, something that would be difficult to achieve by simply modifying a plant alkaloid. Other fully synthetic opioids like methadone and tramadol were similarly designed to target specific receptor interactions without any botanical starting material.
Opioids Your Body Makes
Your brain and nervous system produce their own opioid compounds, discovered in the 1970s. These endogenous (meaning “from within”) opioids are small proteins called peptides, and they bind to the same receptors that plant-derived and synthetic opioids target. There are three main types: endorphins, enkephalins, and dynorphins. Each is clipped from a larger precursor protein by specialized enzymes.
Endorphins are the most familiar. Beta-endorphin is released during exercise, stress, and pain, which is why intense physical activity can produce a natural feeling of euphoria. Enkephalins play a role in modulating pain signals in the spinal cord and brain. Dynorphins are involved in pain processing too, but they tend to produce different effects, sometimes contributing to feelings of unease rather than pleasure, because they preferentially activate a different receptor subtype.
These natural peptides are the reason opioid receptors exist in the first place. The poppy plant didn’t evolve to get humans high. It evolved alkaloids that happen to mimic the shape of molecules your body already uses. When morphine enters the brain, it slots into receptors that evolved over millions of years to respond to endorphins and enkephalins. That molecular coincidence is the foundation of everything opioids do, from pain relief to euphoria to the risk of dependence.
How Opioid Receptors Work
Five types of opioid receptors have been identified so far, but three do most of the heavy lifting. Mu receptors are the primary target for pain relief and euphoria, and they’re what morphine, fentanyl, and most prescription opioids activate. Your body’s beta-endorphin naturally binds here. Delta receptors respond to enkephalins and play a role in mood regulation and some pain control. Kappa receptors bind dynorphins and are linked to pain relief but also to the unpleasant, dissociative feelings that some opioids produce.
The differences between these receptors explain why not all opioids feel the same or carry the same risks. A drug that strongly activates mu receptors will produce powerful pain relief and a high risk of respiratory depression. One that leans toward kappa receptors might reduce pain but cause dysphoria instead of pleasure. Drug designers have tried for decades to create opioids that selectively target one receptor type to get pain relief without the dangerous or addictive side effects, with limited success so far.
From Poppy Field to Pharmacy
Modern pharmaceutical production of opioids rarely involves the romantic image of hand-scored poppy pods. Most legal morphine and codeine today comes from the poppy straw process, where entire plants are harvested mechanically, dried, and then subjected to chemical extraction. The composition of morphine in the plant varies depending on the cultivar, growing conditions, and harvest timing, so extraction procedures must be calibrated for each batch. There is no single universal method that works for all poppy straw.
Once extracted, raw morphine can be purified for direct medical use or sent down the semi-synthetic pipeline to become oxycodone, hydrocodone, or other derivatives. Meanwhile, fully synthetic opioids like fentanyl are manufactured in separate facilities using entirely chemical processes. The two supply chains, botanical and synthetic, operate in parallel, serving different segments of the pharmaceutical market while ultimately targeting the same receptors in the human brain.

