Psilocybin

“Nature has pulled off something unexpected in the world of psychedelic fungi. Scientists have discovered that different types of “magic mushrooms” independently evolved completely separate biochemical pathways to produce the same mind-altering compound, psilocybin. The finding represents a rare example of convergent evolution in the molecular kitchen of natural product synthesis.”

https://scienceblog.com/magic-mushrooms-evolved-same-chemical-twice-through-different-paths/