Psilocybin comes from mushrooms. It’s found naturally in more than 150 species of fungi, most of them belonging to the genus Psilocybe. These mushrooms grow wild on every inhabited continent, thriving in tropical and subtropical climates, and have been used by indigenous cultures in Mexico for centuries. Today, psilocybin is also produced synthetically in laboratories for clinical research.
The Fungi That Produce It
The vast majority of psilocybin-producing mushrooms belong to the genus Psilocybe, which is the best known and most extensively studied group. But Psilocybe isn’t the only source. Several other fungal genera also contain psychoactive species, including Panaeolus, Gymnopilus, Pluteus, and Conocybe. Within Panaeolus alone, 77 species have been formally identified, and at least 10 of those are confirmed to contain psilocybin.
Among all these species, Psilocybe cubensis stands out as the most widely recognized. It’s the most researched psilocybin mushroom, partly because it produces high amounts of psilocybin and partly because it’s easy to cultivate. In its natural habitat, P. cubensis grows on cow manure and composted plant material in warm, humid environments. Its adaptability to a wide range of conditions has made it the default species for both legal research programs and illicit cultivation. In fact, regulatory frameworks in Colorado and Oregon currently permit only P. cubensis for supervised use.
Different species contain different concentrations of psilocybin, and even within a single species, potency varies depending on growing conditions, substrate, and harvest timing. This natural variability is one reason wild-harvested mushrooms produce unpredictable effects compared to standardized preparations.
Where These Mushrooms Grow
Psilocybin mushrooms are found across the globe, but they cluster in specific climates and habitats. Tropical and subtropical regions support the widest diversity. Roughly 10 native species have been used regularly by indigenous groups in Mexico, four to six species in Europe and Asia, and six to eight species are commonly consumed in North America.
Most psilocybin species are saprotrophic, meaning they feed on decaying organic matter. You’ll find them in pastures (especially where cattle graze), forest floors rich in leaf litter, rotting wood, and composted soil. P. cubensis prefers warm, humid pastures and is common across Central America, South America, Southeast Asia, and parts of the southern United States. Other species, like Psilocybe semilanceata (the “liberty cap”), grow in cooler grasslands across Europe and the Pacific Northwest.
How Fungi Make Psilocybin
Psilocybin starts as tryptophan, the same amino acid found in many foods you eat. Inside the mushroom, four enzymes transform tryptophan through a step-by-step chemical assembly line. First, an enzyme strips a chemical group from tryptophan to create tryptamine. A second enzyme adds a hydroxyl group to that molecule. A third enzyme attaches a phosphate group. Finally, a fourth enzyme adds two methyl groups in sequence, completing the psilocybin molecule.
This four-step pathway was mapped in detail in Psilocybe cubensis. When you eat psilocybin, your body quickly removes that phosphate group, converting it into psilocin, which is the compound that actually crosses into the brain and produces psychedelic effects. The mushroom essentially stores psilocybin as a stable, phosphorylated form of the active drug.
Why fungi evolved to produce a compound that alters mammalian brain chemistry remains an open question. One leading hypothesis is that psilocybin deters insects from feeding on the mushrooms, since the compound affects serotonin pathways that insects also rely on. Notably, the genes responsible for psilocybin production appear to have spread between distantly related fungal species through horizontal gene transfer, meaning the genetic instructions jumped between species rather than being inherited from a shared ancestor. This unusual pattern suggests the ability to make psilocybin provided a strong survival advantage.
Centuries of Indigenous Use
Long before Western science took an interest, indigenous communities in Mexico had deep traditions of using psilocybin mushrooms for healing and divination. The Mazatec people of Oaxaca became the most widely known source of this knowledge after R. Gordon Wasson participated in a mushroom ceremony in Huautla de Jiménez and published his account in Life magazine in 1957. The Mazatec healer María Sabina, who led that ceremony, called them “hongos santos,” or holy mushrooms.
But the Mazatecs were far from the only group. Historical records document psilocybin mushroom use among the Zapotecs, Nahuas, Matlatzincas, Chatinos, Chinantecs, Mixes, and Mixtecs. In the Oaxacan groups alone, nine Psilocybe species were used, with five of them specific to the Zapotecs of the Sierra Sur region. The Zapotecs of San Miguel Mixtepec consumed Psilocybe zapotecorum to treat illness and to consult the mushroom for difficult family or social problems. This divinatory use, asking the mushroom a question and interpreting the visions as guidance, was a common thread across multiple indigenous traditions.
Scientific Isolation and Modern Production
Albert Hofmann, the Swiss chemist already famous for synthesizing LSD, first isolated psilocybin in 1957 from the species Psilocybe mexicana, specimens that had been collected in Mexico and sent to his laboratory at Sandoz Pharmaceuticals. He identified its chemical structure and synthesized it shortly after, opening the door to standardized research.
Today, the psilocybin used in clinical trials is produced through chemical synthesis rather than mushroom extraction. This is a complex, multi-step process that remains expensive and relatively low-yield despite recent improvements. To get around these limitations, researchers have engineered living organisms to produce psilocybin biologically. Scientists have successfully produced psilocybin using a common mold (Aspergillus nidulans), the bacterium E. coli, and brewer’s yeast (Saccharomyces cerevisiae). The yeast-based method is particularly notable because it can produce psilocybin from simple glucose, no mushroom material required.
These bioengineering approaches could eventually make pharmaceutical-grade psilocybin cheaper and more accessible for the growing number of clinical trials studying it for depression, PTSD, and other conditions. For now, though, traditional chemical synthesis remains the standard for producing the compound used in regulated research settings.

