Some mushrooms are magical due to a chemical compound called psilocybin that brings about psychedelic effects of the mushrooms to trip up fungus-eating insects.
The work helps explain a biological mystery says the lead researcher Jason Slot, an assistant professor of fungal evolutionary genomics at The Ohio State University.
Mushrooms that contain the brain-altering compound psilocybin vary widely in terms of their biological lineage and, on the surface, don't appear to have a whole lot in common, he said.
He and his co-authors examined three species of psychedelic mushrooms and related fungi that don't cause hallucinations and found a cluster of five genes that seem to explain what the psychedelic mushrooms have in common.
"But our main question is, 'How did it evolve?'" Slot said. "What is the role of psilocybin in nature?"
Slot and his co-authors found an evolutionary clue to why the mushrooms gained the ability to send human users into a state of altered consciousness. The genes responsible for making psilocybin appear to have been exchanged in an environment with a lot of fungus-eating insects, namely animal manure.
Psilocybin allows fungi to interfere with a neurotransmitter in humans and also insects, which are probably their bigger foe. In flies, suppression of this neurotransmitter is known to decrease appetite.
"We speculate that mushrooms evolved to be hallucinogenic because it lowered the chances of the fungi getting eaten by insects," Slot said. The study appears online in the journal Evolution Letters.
"The psilocybin probably doesn't just poison predators or taste bad. These mushrooms are altering the insects' 'mind' if they have minds to meet their own needs."
And the reason that unrelated species have the same genetic protection probably comes down to the fact that they commonly grow in the same insect-rich mediums: animal feces and rotten wood.
This work could guide medical science by pointing researchers in the direction of other molecules that could be used to treat disorders of the brain, Slot said.
Psilocybin has been studied for the treatment of a variety of mental disorders, including treatment-resistant depression, addiction and end-of-life anxiety.
A handful of researchers in the U.S. are looking at potential treatment applications, and much of the work is happening abroad. Strict drug laws have delayed those types of studies for decades, Slot said.