Entomopathogenic fungi

A synopsis of the abundant widespread neotropical fungi Ophiocordyceps unilateralis (likely a group of species) from Wikipedia provides an introduction to this topic:

Ophiocordyceps unilateralis is an entomopathogen, or insect-pathogenising fungus, discovered by the British naturalist Alfred Russel Wallace in 1859, and currently found predominantly in tropical forest ecosystems. O. unilateralis, also referred to as a zombie fungus, infects ants of the Camponotini tribe, with the full pathogenesis being characterized by alteration of the behavioral patterns of the infected ant. Infected hosts leave their canopy nests and foraging trails for the forest floor, an area with a temperature and humidity suitable for fungal growth; they then use their mandibles to affix themselves to a major vein on the underside of a leaf, where the host remains until its eventual death. The process leading to mortality takes 4–10 days, and includes a reproductive stage where fruiting bodies grow from the ant's head, rupturing to release the fungus's spores. O. unilateralis is in turn also susceptible to fungal infection itself, an occurrence which can limit its impact on ant populations, which has otherwise been known to devastate ant colonies.

The genus of ant infecting fungi were once in the genus Cordyceps but are now known to be in the genus Ophiocordyceps.