Lolitrem B is one of many toxins produced by a fungus called Epichloë festucae (var. lolii), which grows in perennial ryegrass. The fungus is symbiotic with the ryegrass; it doesn't harm the plant, and the toxins it produces kill insects that feed on ryeg