Fungi produce diverse metabolites that can have antimicrobial, antifungal, antifeedant, or psychoactive properties. Among these metabolites are the tryptamine-derived compounds psilocybin, its precursors, and natural derivatives (collectively referred to as psiloids), which have played significant roles in human society and culture. The high allocation of nitrogen to psiloids in mushrooms, along with evidence of convergent evolution and horizontal transfer of psilocybin genes, suggest they provide a selective benefit to some fungi. However, no precise ecological roles of psilocybin have been experimentally determined. The structural and functional similarities of psiloids to serotonin, an essential neurotransmitter in animals, suggest that they may enhance the fitness of fungi through interference with serotonergic processes. However, other ecological mechanisms of psiloids have been proposed. Here, we review the literature pertinent to psilocybin ecology and propose potential adaptive advantages psiloids may confer to fungi..
Meyer, M., & Slot, J. The Evolution and Ecology of Psilocybin in Nature. (1096-0937 (Electronic)).