Synthesis of Psilocybin and How Magic Mushrooms Rewire Brain Networks

Watch on Youtube or read the blog below!

Did you know that the active chemical in magic mushrooms psilocybin can rewire and make the human brain more flexible, translating into major therapeutic benefit in depression and other conditions? This has led to Australia approving specific medicinal use of psychedelics as the first country.

You will be surprised to hear that psilocybin can be synthesized in just 4 steps leveraging quite simple chemical reactions. It was the legendary Albert Hofmann, who synthesized it first, and just like with his discovery of LSD reported a self-experiment. This didn’t just make him trip big time, but also unveiled some salient characteristics this molecule.

This story is not commonly talked about, so I hope you are in the mood for some 60-year-old German texts. Oh, and just like heroin, psilocybin was sold as a legit pharmaceutical (lol). If you enjoyed the discussion of history and syntheses of psilocybin, LSD, THCP or ibogaine, you will like this one too!

Today we will 1) review psilocybin’s rich history, chemical structure, and mechanism of action, 2) look at its chemical synthesis, 3) dive into the scientific evidence behinds its therapeutic potential, and 4) last, explore its effect on brain networks.

History and Context

Psilocybin is a so-called tryptamine alkaloid found in a variety of mushrooms, but most potently in the genus Psilocybe. Due to its hallucinogenic and mystical effects, human use of psilocybin for medicinal and religious purposes dates to pre-historic times. Some notable artefacts include a Spanish cave painting – though maybe this person simply liked champignons – or more telling mushroom figurines and even statues from pre-historic Columbia. Supposedly, the mushrooms were called “God’s flesh” in an Aztec language, so you can be sure they were tripping big time.

Supposedly, the oldest indication of human use was found in an Algerian cave, estimated to date back to an insane 7000-9000 BC. It shows what we probably all drew at one point in our life: transcendental, bee-faced mushroom-shamans! Jokes aside, do you think that the interpretation on the far left is sensible compared to the original? Let me know in the comments! Some folks argue that it’s very easy to over-interpret these types of drawings and immediately think that magic mushrooms are encrypted everywhere. Also, don’t forget what exposure to the elements over thousands of years can do. What looks like a mushroom to us, might have represented something else. By the way, the esoteric drawings in the Algerian cave naturally make it also a prime site for ancient aliens enthusiasts.

Given Europeans prohibited mushrooms and other non-alcoholic intoxicants in the 16th century, their use was driven underground – so much so, that during the early 20th century western academics weren’t even sure if psychoactive mushrooms existed at all. They didn’t see the convincing Algerian shamanic cave yet, so they are excused. This changed with Gordon Wasson, a banker at JP Morgan and investigational mushroom enthusiast, who took some trips to remote Mexico with his wife in 1953. Albert Hofmann wrote that it took more than one trip for Wasson to participate in a mushroom ceremony instead of just watch, and that he might have been one of the first white folks to ever take them. A few years later in 1957, Wasson published the first ever broadly distributed article on magic mushrooms. I invite you to look through it yourself – the link is in the description. Not only is it nice to read through his personal expeditions and experiences; but the flipping through this 70-year-old magazine itself is quite hilarious, partly because it has nice oldschool ads for things like canned meatball pasta – or the inviting flavor feast of canned pork and beans. In 1957, the chemistry and biology behind mushrooms was still a mystery – but even though Wasson thought chemists have a long road to go for isolation and synthesis, this would change very soon.

Wasson was connected to the botanist Roger Heim, who as Wasson wrote, was a man with vast experience in the field of mushrooms. Heim managed to grow the mushrooms in his laboratory in Paris – so he’s like the founding father of shroom farming – and shared samples with the Swiss pharma company Sandoz where the legendary Albert Hofmann was still active, having already discovered LSD more than 10 years earlier in 1943. Hofmann soon isolated psilocybin and its active metabolite psilocin – but how?

He first tried something I mentioned in an old video talking about the mind-blowing isolation of 0.35mg of ciguatoxin, a marine natural product, from 125kg of moray eel guts. During that effort, the scientists injected their chromatographic fractions into mice and determined presence of ciguatoxin based on if the mouse would drop dead or not.

Hofmann’s Self Experiment with Psilocybin

After the unsatisfactory animal tests, the temptation got too big. He ate 32 medium-sized mushrooms – talk about not being cautious at all – and the ensuing effects left no doubts regarding the potency of these fungi.

After half an hour, he started to experience some serious sensory disruptions and hallucinations, apparently accepting the fact that his supervising doctor might sacrifice him to some ancients Aztec gods.

His trip peaked 1.5h after eating the mushrooms, and the entire psychedelic dream lasted about 6 hours. Clearly, he came back feeling quite euphoric.

This made him realize that potency of the mushrooms was not the problem, but that animals are less sensitive and clear in terms of their response to psychedelics. You can also see this in today’s research in animals, which uses doses that are usually more than 2-3 times higher than human doses. So, with this confidence and insight, Albert Hofmann consistently performed human testing of extracts to guide the rest of isolation, which worked quite well even though these were diluted samples and not dried mushrooms.

Which of Hofmann’s self-experiments do you like better: the LSD bicycle story or the mushroom dream? Let me know in the comments!

Wrapping up on history before we go to chemistry, Hofmann also rapidly developed the first synthesis of psilocybin in 1959. Thereafter, Sandoz distributed 2mg dosed tablets, nucleating several clinical studies in the 1960s and 1970s on mental disorders and other areas. However, as part of the “war on drugs” to control abuse of psychedelics, psilocybin was classified as a highly controlled Schedule 1 substance. Only after strict governmental controls were somewhat lifted by the 2000s, psilocybin became the subject of clinical investigations again; and recently picked up even more steam with the FDA granting psilocybin a breakthrough therapy designation in 2018.

structure and biochemical effects of psilocybin/ psilocin

Before we talk about these studies, we need to take a closer look at psilocybin. Comparing their chemical structures, you will realize that psilocybin and its active metabolite, psilocin, share the tryptamine core with various other compounds – for example with the endogenous neurotransmitter serotonin which modulates mood, learning and other things in humans; but also the hormone melatonin which modulates our sleep and circadian rhythm, and of course other psychedelics such as DMT. It’s always impressive to see that simple changes in chemical structure lead to massively different physiological mechanisms of action.

But wait, what’s the connection between psilocybin and psilocin? Well, just like aspiring for example, psilocybin is a pro-drug which is rapidly dephosphorylated under acidic conditions in the intestine and liver. After first metabolism, the resulting psilocin is much less hydrophilic and only now can cross the blood-brain barrier. Once in the brain, psilocin is believed to selectively bind to the serotonin 2A receptor.

With psilocin looking quite like serotonin, it engages in similar interactions in the active site of the serotonin 2A receptor. This receptor is highly expressed in certain brain regions and part of a broader family of 14 sub-types of receptors which drive the incredibly broad biological functions of serotonin. Psilocin is believed to get its therapeutic effect from its selectivity for the 2A receptor over all other serotonin receptor types. However, there is also some research showing that affinities for 2A, 2C and 1A receptors are in the same order of magnitude – so clearly, the picture is much more complex.

These receptors are so called G-protein coupled receptors or GPCRs, which if activated lead to an array of complex downstream signaling cascades. These molecular mechanisms, most of them not well understood and involving other neurotransmitters like glutamate as well, result in structural and functional cellular changes which can translate into enhanced neuroplasticity. I just want to mention that I will not cover how other anti-depressants or serotonin specifically work, because this video is already really packed with information.

Let’s remember, a typical psilocybin session is just 4-6 hours long with a peak of acute subjective effects after 60 to 90 minutes. Due to the high expression of serotonin 2A receptors in the visual cortex, individuals experience visual hallucinations – at high doses, even with eyes closed. This heterogeneous receptor expression in brain regions is something you should remember for later by the way. This is really interesting, because on top of these acute effects, there are these cellular changes we’ve mentioned earlier which happen on a much slower but also more durable timescale.

Neuroplasticity refers to the brain’s ability to change throughout life and can be driven by changes in cell structure but also changes in the efficacy of synaptic transmissions. From these different mechanisms, I just wanted to highlight one study on dendritogenesis.

This team of researchers looked at structural effects of psilocybin on mice. To validate effects and dosage, we once again have the good old head-twitch response. Within the frontal cortex, they found a significant density and size increase of dendritic spines, which are neuron protrusions which help signal transmission across the nervous system. Strikingly, a fraction of these new dendritic spines was still present after a month and seemed no different than normal spines. This is clear evidence for structural change.

But now comes another interesting thing. They pre-treated other mice with Ketanserin. This compound, you can see that its left half looks like a tryptamine analog, is also a strong 2A receptor antagonist which leaves many receptors inaccessible to psilocin activation. This blocking or knockdown is reflected in the lack of a head-twitch response, as you can see here. However, the structural remodeling took place nevertheless. It might be that this happens already at much lower concentrations of psilocybin, or potentially also proceeds via other mechanisms beyond serotonin 2A. Now that we understand psilocybin’s rich history and biochemical mechanisms, we can check out some chemistry.

The research we will talk about is a synthesis of psilocybin by scientists at the Usona Institute which runs early research and clinical trials for psilocybin and 5-methoxy DMT. This is a non-profit medical research organization which is pioneering the application of psychedelics to neurological disorders. They also have an investigational supply program of the psilocybin that they synthesize themselves. Let’s check out how this works.

Organic chemistry: Synthesis of Psilocybin and Psilocin

Psilocybin can be made from psilocin, a slightly simpler molecule, by essentially reversing what would happen in the body. Albert Hofmann’s first synthesis published in 1958 and most large-scale routes accomplish this in two steps. First, psilocin nucleophilically attacks an activated pyrophosphate. Interestingly, one of the benzyl groups hanging on the phosphate oxygens intramolecularly shifts to the nitrogen, creating a zwitter-ionic species. The nucleophilic substitution on phosphorous would have been ineffective without the benzyl or other ester groups, but now a hydrogenation is requiredto deprotect the intermediate to psilocybin. This approach has quite a few challenges, most notably that atom economy is quite bad. Starting from 700g of zwitterion, just 100g of psilocybin can be isolated. In addition, the benzyl migration step to nitrogen is quite poorly understood and behaves in funky ways which makes in-process monitoring tricky. Obviously, you don’t want to start randomly guessing reaction endpoints when you are doing a reaction on kilo-gram scale. This transformation is very dependent on reaction volume and temperature control; the authors highlight than in one reaction “gone bad”, they had to filter the product over 6 days.

Instead, the Usona team discovered a more efficient way. Let’s look at the full synthesis in just 4 steps from the commercially available starting material. 4-acetoxyindole undergoes a regioselective electrophilic aromatic substitution with oxalyl chloride to introduce the two-carbon chain. In a second step, the remaining acyl chloride facilitates an amide-formation with dimethylamine. Adding lithium aluminum hyride at forcing conditions, we exhaustively reduce both carbonyls on the nitrogen chain – liberating the tryptamine – as well as the acetyl group to give the free phenol in psilocin. Now, under optimized conditions, the authors found that using POCl3 followed by immediate hydrolysis introduce the phosphate. They were able to scale this very well, delivering a whopping 1.2kg of psilocybin in one go.

This phosphorylation proceeds by stepwise hydrolysis of the di-chlorointermediate. But as you can see, the reaction setup and work-up is quite complex at scale – and this step remains the most problematic one. For instance, they had to add 3 kilograms of celite powder to prevent the formation of sticky precipitate that messed up the stirring. The hydrolysis itself was achieved by quenching the di-chloro product into a cold THF/water mixture containing excess triethylamine. Keeping the slurry at sub-0 degrees for roughly 60min seemed to work well – in case of longer hold times, they observed decomposition to psilocin again. After some more work-up, they performed a recrystallization to isolate 1.2 kg of highly pure psilocybin.

Selected clinical data on psilocybin

So probably you’ve heard various people, including drug abusers themselves, throwing around the idea of psychedelics as the be-all end-all super medicines. Indeed, there is a growing body of evidence for psilocybin, but the focus is currently on depression – in particular, cancer-related and treatment-resistant depression, as well as anxiety. Most of these studies use one or two 25mg psilocybin doses separated by around 3 weeks; and the treatment is supported by targeted psychotherapy sessions as well – so these patients are not just taking psilocybin to their liking and magically getting better.

Also, all credible research is looking at pure psilocybin, instead of magic mushroom bites – obviously, this way the effective dose of the primary active ingredient and safety for patients can be controlled. You don’t want to give your patient some random mushroom and hope it was some good stuff. However, to give credit to nature where it’s due, there is the so called entourage effect which postulates that the sum of the parts in psychedelics might lead to a greater synergistic effect compared to the individual compounds. Some research has shown that magic mushrooms might be a more potent source of psilocybin than pure psilocybin itself – likely because there are other compounds and psilocybin-derivatives that have synergistic interactions and amplify efficacy.

There is really strong evidence from the largest psilocybin depression study to date published a few months back – and this research has triggered quite some broader public attention on psilocybin. Before we go there, I wanted to briefly showcase that some evidence in other disorders is quite promising as well:

One randomized clinical study compared two cohorts of around 50 heavy drinkers undergoing psychotherapy – compared to a tobacco use study which only had 15 patients, this sample is really not that bad. These black arrows indicate two sessions, where they either received psilocybin or a sedative which served as a quasi-placebo and blinding control. What they found was that the psilocybin group had much lower alcohol use even half a year later, also translating into fewer alcohol-related issues like physical problems or impulse control.

Let’s switch gears now, looking at this large, eye-catching study on treatment-resistant depression. Resistance in depression is a huge problem, as remission rates across courses of therapy drop by a large margin. The success rate of a first anti-depressant course is around 37% – which to be honest is shockingly low – but drops to the mid-teens after 2 or more courses. Once someone failed two different courses, their depression is classified as treatment-resistant.

This Phase 2 study included 233 patients and tested three doses: a high dose of 25mg – which isn’t crazy high really; a medium dose of 10mg and a 1mg dose which they call control – not really a true placebo but probably also too low to show any effect. Because the acute effects of psychedelics are very strong, the value of placebos and double blinding itself is questionable in these trials anyways, as each participant and staff member realize who’s actually tripping or not.

I said it a few times already – psychedelics can also be dangerous or counterproductive in some cases. If you are interested, you can read through the exclusion criteria for this study. Also, the study had participants discontinue anti-depressants and other prohibited medications during a wash-out period.

Looking across the ingoing randomized groups, 60-80% of patients were severely depressed as measured with MADRS depression scores, and around 80% had failed two treatments for their current depressive episode. Notably, less than 10% had already used psilocybin in their life – this might be important because some researchers have hypothesized that previous psychedelic exposure might impact trial enrollment and efficacy on individual patients.

The treatment consisted of a one-time psilocybin dose which was administered in a calm supervised environment, with patients chilling out to a nice playlist and laying around in introspective for a few hours.

Let’s look at the results: The medium dose of 10mg did not bring any changes compared to the low 1mg control dose – however, the 25mg group a mean drop of 12 points in the depression score, which was significantly lower than the other two.

Looking at the evolution over time, we can see steep acute drop followed by a slight rebound; however, the separation of the three groups seemed to persist over time. At 12 weeks, the changes in scores we saw translated into roughly 30% of patients dropping below a score of 10, which means they are depression-free. Considering we are talking about treatment-resistant depression here, this remission rate is very meaningful – also, we are just talking about a single psilocybin dose here.

Looking at safety, the 25mg group had few more adverse events – but this was primarily driven by headaches, nausea, and not serious AEs like suicidal ideation.

I hope this gave you a more detailed look at why some folks are getting excited about psilocybin in depression – but bigger and longer trials are needed to replicate these results at scale, and bring more insights into durability of response.

Neurostructural mechanism behind psilocybin

Finally, let’s play neuroscientists. One potential reason for psilocybin’s activity is connected to large-scale brain networks which govern all our thoughts and actions. There are many different networks depending on what model and definitions you consider, but three are important for us. The default mode network is a set of interconnected brain regions that are active when a person is not engaged in any specific task or actively thinking about something. This network is often referred to as the “resting state” network, as it is active when the brain is not focused on external stimuli – and thought to be involved in self-reflection, future planning as well as social cognition – so thinking about the mental states of other people. The executive network, on the other hand, is involved in goal-directed behavior, decision-making, and working memory. This network is active when a person is engaged in a task that requires concentration and effort, such as solving a complex problem or completing a difficult math equation. The salience network is another important network in the brain, which is involved in detecting and responding to important stimuli in the environment. This network is active when a person is presented with a novel or unexpected environmental or emotional stimulus, such as a loud noise or a sudden movement. These interconnected networks are associated with cognitive control and flexibility, ultimately governing processes like learning and task switching. In depression or disorders exhibiting cognitive inflexibility such as autism or OCD disorders, the interdependency and switching of these networks is impaired.

Research published in Nature Medicine in 2022 showed that two doses of psilocybin with psycho-therapy swiftly decreased symptoms in severely depressed patient, as shown by reductions in the BDI score. Nothing shocking for us – but what’s more interesting is that psilocybin showed strong significant decrease in brain network modularity as shown by fMRI brain imaging. In the bottom right chart, you can see that default mode network activation decreased while its integration with the executive and salient networks increased. In plain English, this kinda made their brain more flexible. They also had a control arm which administered a selective serotonin reuptake inhibitor antidepressant, which lacked this integration-inducing effect.

The researchers postulate that this decreased modularity or increased flexibility of brain networks are key to psilocybin’s mechanism of action. Depression is characterized by abnormally constricted network connectivity – psilocybin might ameliorate this by broadening mental states, in line with the liberating emotions some people feel. This effect differentiates psilocybin from other SSRIs, likely due to its more targeted effect on cortical 5-HT2A receptors which are highly expressed in regions linked to these networks. There are probably some additional mechanisms at play here like reduction of amygdala response, which is another pivotal area implicated in depression.

Another area of interest is the claustrum, a thin sheet of neurons located in the central cortex, which also shows a high level of 5-HT2A receptor expression. In other research, psilocybin was demonstrated to decrease activity or turn down this area which is highly interconnected and involved in setting attention and switching tasks. You can see that there are some different effects from psilocybin on the right claustrum, decreasing connectivity with some networks, but also increasing others. Put simply, shutting down the claustrum might explain why psychedelics help with re-setting rigid though patterns, as well as unveil new psychological insights through an effective re-wiring of brain networks.

A final interesting point is related to different people experiencing different types of trips, if you will. There is some degree of association between brain structure and personality dimension as well as risk factors or pharmacological treatment response. In one 2020 study, researchers found that the thickness of the anterior cingulate, a brain compartment connected to other areas known to be important for emotion or memory, can predict the emotional experience that people get from psilocybin, in terms of feeling strong emotions of bliss, unity or others. This might be one of dozens of other factors that dictate why people react quite differently to psychedelics or drugs.

I hope you learned several new interdisciplinary science facts today! If you liked this video, consider becoming a channel member and activate notifications for future videos. Thank you and until next time.

Key references:

  • Single-Dose Psilocybin for a Treatment-Resistant Episode of Major Depression | NEJM 2022, 387, 1637
  • Therapeutic use of psilocybin: Practical considerations for dosing and administration | Front. Psychiatry, 2022, 13, 1040217
  • Psychedelics and Neuroplasticity: A Systematic Review Unraveling the Biological Underpinnings of Psychedelics | Front. Psychiatry, 2021, 12, 724606
  • Increased global integration in the brain after psilocybin therapy for depression | Nature Medicine 2022, 28, 844
  • Percentage of Heavy Drinking Days Following Psilocybin-Assisted Psychotherapy vs Placebo in the Treatment of Adult Patients With Alcohol Use Disorder | JAMA Psychiatry 2022, 79, 953
  • DARK Classics in Chemical Neuroscience: Psilocybin; ACS Chem. Neuroscience 2018, 9, 2438
  • Psilocybin acutely alters the functional connectivity of the claustrum with brain networks that support perception, memory, and attention | NeuroImage 2020, 218, 116980
  • Seeking the magic mushroom | Wasson’s 1957 publication in Life Magazine |
  • Die psychotropen Wirkstoffe der mexikanischen Zauberpilze (Albert Hofmann) | Verhandlungen der Naturforschenden Gesellschaft in Basel 1960, 71, 239
  • Research on Acute Toxicity and the Behavioral Effects of Methanolic Extract from Psilocybin Mushrooms and Psilocin in Mice; Toxins 2015, 7, 1018





2 responses to “Synthesis of Psilocybin and How Magic Mushrooms Rewire Brain Networks”

  1. KAYSWELL Avatar

    You helped me a lot with this post. I love the subject and I hope you continue to write excellent articles like this.

  2. Haircuts Avatar

    The articles you write help me a lot and I like the topic

Leave a Reply