Within 24 hours of a dose of psilocybin, tiny branches on mouse brain cells began sprouting new connection points. Researchers at the University of California, Santa Cruz, watched those changes unfold in living brains, offering a closer look at how the compound in “magic mushrooms” alters neural circuits.

The study, published in Nature Neuroscience, examined how psilocybin changes the brain’s ability to adapt. That ability, called plasticity, lets brain cells form, strengthen or remove connections. Scientists hope to understand it better because changes in these circuits may matter for future treatments for depression, post-traumatic stress disorder and other psychiatric conditions. The mouse findings are an early step, not evidence that psilocybin is already a proven treatment for people.

To follow the changes, the team used two-photon microscopy, a high-resolution imaging method that can show neurons inside a living brain. It tracked individual dendritic spines over several weeks. These tiny, bulb-like branches receive signals from other brain cells and help form synapses, the connections through which neurons communicate.

After psilocybin was given, new spines formed rapidly, with an increase visible within 24 hours. The researchers also found that the drug sped up the maturation of new connections and encouraged the removal of some older ones. The result was not simply a bigger number of connections: the brain’s circuits were being remodeled.

The team identified a particular group of cortical neurons as important to this remodeling. The cortex is involved in many functions, including thought and perception. Researchers also found that psilocybin’s rewiring depended on the brain’s underlying health, suggesting that the same compound may affect different circuits in different conditions.

Psilocybin also caused the mice to twitch their heads rapidly. Scientists use this behavior as a rough indicator of psychedelic-like effects in animals, not as a direct measure of what a person experiences. Importantly, the study reported a behavioral response suggesting that the cellular processes behind structural plasticity can occur without those psychedelic effects. That finding could help researchers search for ways to encourage useful brain changes while reducing hallucinogenic effects.

Senior author Yi Zuo, a professor of molecular, cell and developmental biology at UC Santa Cruz, called the work “a major advance” in understanding how psilocybin reshapes neural circuits and what that may mean for mental health care. The research builds on renewed scientific interest in psychedelics as compounds that can quickly promote brain plasticity, after decades in which studies were restricted following the U.S. Controlled Substances Act of 1970.

For now, the study describes what happened in mice, and much more research is needed before scientists know whether the same mechanisms can safely guide treatments for people. By seeing individual connections change in real time, the UC Santa Cruz team has given future studies a more precise place to begin: finding which circuit changes may help, and whether they can be separated from the drug’s psychedelic effects.