Evolution of fungi
The evolution of fungi has been going on since fungi diverged from other life around 1.5 billion years ago, with the glomaleans branching from the "higher fungi" at ~, according to DNA analysis. Fungi probably colonized the land during the Cambrian, over, but terrestrial fossils only become uncontroversial and common during the Devonian,.
Early evolution
Evidence from DNA analysis suggests that all fungi are descended from one common ancestor, at least 600 million years ago. It is probable that these earliest fungi lived in water, and had flagella. Fungi moved to land at about the same time as plants, about 460 million years ago, at least. Fossils of land fungi date to almost 400 million years ago. About 250 million years ago fungi became abundant in many areas, based on the fossil record, and could even have been the dominant forms of life on the earth at that time.Kingdom Fungi
Fungi were considered to be part of the plant kindgom until the mid-20th century. They were divided into four classes: Phycomycetes, Ascomycetes, Basidiomycetes, and Deuteromycetes. In the middle of the 20th century Fungi were considered a distinct kingdom, the newly recognized kingdom Fungi becoming the third major kingdom of multicellular eukaryotes with kingdom Plantae and kingdom Animalia, the distinguishing feature between these kingdoms being the way they obtain nutrition.Fossil record
A rich diversity of fungi is known from the lower Devonian Rhynie chert; an earlier record is absent. Since fungi do not biomineralise, they do not readily enter the fossil record; there are only three claims of early fungi. One from the Ordovician has been dismissed on the grounds that it lacks any distinctly fungal features, and is held by many to be contamination; the position of a "probable" Proterozoic fungus is still not established, and it may represent a stem group fungus. There is also a case for a fungal affinity for the enigmatic microfossil Ornatifilum. Since the fungi form a sister group to the animals, the two lineages must have diverged before the first animal lineages, which are known from fossils as early as the Ediacaran.In contrast to plants and animals, the early fossil record of the fungi is meager. Factors that likely contribute to the under-representation of fungal species among fossils include the nature of fungal fruiting bodies, which are soft, fleshy, and easily degradable tissues and the microscopic dimensions of most fungal structures, which therefore are not readily evident. Fungal fossils are difficult to distinguish from those of other microbes, and are most easily identified when they resemble extant fungi. Often recovered from a permineralized plant or animal host, these samples are typically studied by making thin-section preparations that can be examined with light microscopy or transmission electron microscopy. Compression fossils are studied by dissolving the surrounding matrix with acid and then using light or scanning electron microscopy to examine surface details.
The earliest fossils possessing features typical of fungi date to the Paleoproterozoic era, some ; these multicellular benthic organisms had filamentous structures capable of anastomosis, in which hyphal branches recombine. Other recent studies estimate the arrival of fungal organisms at about 760–1060 Ma on the basis of comparisons of the rate of evolution in closely related groups. For much of the Paleozoic Era, the fungi appear to have been aquatic and consisted of organisms similar to the extant Chytrids in having flagellum-bearing spores. Phylogenetic analyses suggest that the flagellum was lost early in the evolutionary history of the fungi, and consequently, the majority of fungal species lack a flagellum. The evolutionary adaptation from an aquatic to a terrestrial lifestyle necessitated a diversification of ecological strategies for obtaining nutrients, including parasitism, saprobism, and the development of mutualistic relationships such as mycorrhiza and lichenization. Recent studies suggest that the ancestral ecological state of the Ascomycota was saprobism, and that independent lichenization events have occurred multiple times.
In May 2019, scientists reported the discovery of a fossilized fungus, named Ourasphaira giraldae, in the Canadian Arctic, that may have grown on land a billion years ago, well before plants were living on land. Earlier, it had been presumed that the fungi colonized the land during the Cambrian, also long before land plants. Fossilized hyphae and spores recovered from the Ordovician of Wisconsin resemble modern-day Glomerales, and existed at a time when the land flora likely consisted of only non-vascular bryophyte-like plants. Prototaxites, which was probably a fungus or lichen, would have been the tallest organism of the late Silurian. Fungal fossils do not become common and uncontroversial until the early Devonian, when they are abundant in the Rhynie chert, mostly as Zygomycota and Chytridiomycota. At about this same time, approximately 400 Ma, the Ascomycota and Basidiomycota diverged, and all modern classes of fungi were present by the Late Carboniferous.
Lichen-like fossils have been found in the Doushantuo Formation in southern China dating back to 635–551 Ma. Lichens were a component of the early terrestrial ecosystems, and the estimated age of the oldest terrestrial lichen fossil is 400 Ma; this date corresponds to the age of the oldest known sporocarp fossil, a Paleopyrenomycites species found in the Rhynie Chert. The oldest fossil with microscopic features resembling modern-day basidiomycetes is Palaeoancistrus, found permineralized with a fern from the Pennsylvanian. Rare in the fossil record are the homobasidiomycetes. Two amber-preserved specimens provide evidence that the earliest known mushroom-forming fungi appeared during the mid-Cretaceous, 90 Ma.
Some time after the Permian-Triassic extinction event, a fungal spike formed, suggesting that fungi were the dominant life form at this time, representing nearly 100% of the available fossil record for this period. However, the relative proportion of fungal spores relative to spores formed by algal species is difficult to assess, the spike did not appear worldwide, and in many places it did not fall on the Permian-Triassic boundary.
65 million years ago, immediately after the Cretaceous-Tertiary extinction that famously killed off most dinosaurs, there is a dramatic increase in evidence of fungi, apparently the death of most plant and animal species leading to a huge fungal bloom like "a massive compost heap". The lack of K-T extinction in fungal evolution is also supported by molecular data, because phylogenetic comparative analyses of a tree consist of 5,284 mushroom species didn't show signal for a mass extinction event around the Cretaceous-Tertiary boundary.