Fungi did arise before plants: the fungal lineage is generally understood to have diverged from other eukaryotes earlier than the plant lineage did, though both belong to a larger grouping whose deepest splits are still debated. The important nuance is that "arise" can mean two different things—when a lineage split off from its relatives, or when recognizable fossils of that kind of organism first appear—and the answers to those two questions are not identical.
What "before" can mean in this question
The question asks about relative order, and there are at least three clocks one could use. Evolutionary divergence time (when two lineages last shared a common ancestor, as estimated from molecular data) is the usual scientific sense. First fossil appearance is the paleontological sense. And "rise to ecological prominence" is a third, looser sense. Confusion arises because popular accounts mix these: a fungus-like fossil older than the oldest plant fossil does not by itself prove fungi split off first, and a molecular date older than any fossil does not mean a fossil of that age exists.
This answer treats the divergence question as primary and notes where the fossil record does or does not corroborate it. The relevant reference frame is the whole tree of eukaryotes—organisms with cells containing a nucleus—not the much older split between bacteria and eukaryotes.
The tree: fungi and plants are both eukaryotes, but not sister groups
Plants (Plantae, in the broad sense including green algae) and fungi (Fungi) are separate eukaryotic lineages. A common misconception is that fungi are close to plants because both are sessile, grow in soil, and have cell walls. In molecular phylogenies, fungi sit within a large assemblage called Opisthokonta, together with animals and several single-celled relatives. Plants sit within Archaeplastida (also called Plantae in the broad sense), together with red algae and glaucophyte algae.
So the ancestor that fungi and plants share is also the ancestor they share with animals and many other eukaryotes. The fungal–plant split is therefore not a simple fork between the two; it is a deep node in the eukaryotic tree. That matters for the "which came first" question: comparing the timing of the fungal divergence with the plant divergence depends on where the root of the eukaryotic tree is placed, which remains an active and genuinely unsettled area of research.
Established points of agreement
Several conclusions are robust across the mainstream literature:
Fungi are not plants and did not evolve from plants. The old habit of classifying fungi as plants was abandoned on structural and molecular grounds; fungi are more closely related to animals than to plants. The fungal lineage is ancient. Molecular clock analyses and the fossil record both place the origin of fungi deep in the Proterozoic, well before the first land plants. Land plants are comparatively late arrivals. The first direct fossil evidence of land plants (as opposed to green algae) is conventionally placed in the Ordovician, roughly 470–450 million years ago, with earlier cryptic or microfossil hints debated. Fungi were present before land plants. Fossil and molecular evidence supports fungi, or fungus-like organisms, existing before the earliest land plants, and fungi were certainly established in terrestrial and aquatic settings by the time plants colonized land.
On these points the broad claim in the question—fungi before plants—is well supported. The uncertainty is in the fine timing and in how the deepest eukaryotic splits are resolved, not in the general ordering.
The molecular-clock picture
Molecular clocks estimate divergence times by calibrating genetic differences against known fossil or geological dates. For fungi and plants, such studies have repeatedly placed the origin of the fungal stem lineage and the plant stem lineage in the Proterozoic, hundreds of millions of years before the Cambrian. The plant lineage (Archaeplastida) is often dated to roughly 1.5–1.9 billion years ago in various analyses, though estimates vary substantially by method and calibration. Fungal origins are also placed deep in the Proterozoic.
The key point for this question is comparative: in most analyses, the fungal lineage's divergence from its opisthokont relatives is estimated to predate the divergence of the plant lineage from other archaeplastids, or at least both are ancient and the ordering is sensitive to root placement. Because the eukaryotic root is contested—competing hypotheses place it near different major groups—statements that fungi "definitely" split off before plants at the very deepest level should be stated with appropriate caution. What is not in serious doubt is that fungi were evolving as a distinct lineage long before plants existed as land plants.
The fossil evidence and its limits
Fossil evidence is where the "before plants" claim gets its most concrete support, but also where precision is hardest.
Early fungal and fungus-like fossils. Microfossils interpreted as fungal or fungus-like appear in Proterozoic rocks, though interpreting simple microfossils as true fungi is difficult and sometimes disputed. Structures such as hyphae-like filaments and possible spores have been reported from rocks over a billion years old, but such identifications are not universally accepted. This is a case where "reported" should not be read as "confirmed."
The Ordovician–Devonian fungal record. More secure fungal fossils, including hyphae, spores, and later evident mycorrhiza-like associations, become common from the Ordovician onward. The Rhynie Chert (Early Devonian, roughly 410 million years ago) preserves fungi in association with early land plants, demonstrating that fungi were already diverse and interacting with plants shortly after plants colonized land.
Plant fossils. The oldest widely accepted land-plant body fossils are Ordovician in age, with spores suggesting land plants somewhat earlier. Green algae, the plant lineage's closer relatives, go back much further, but green algae are not land plants.
The honest summary: fossils support fungi existing before land plants, and support both lineages being ancient, but the very earliest fungal fossils are not always securely identifiable, and the fossil record is sparse for both groups in the Proterozoic. The ordering "fungi before land plants" is secure; the exact gap in time is not.
Why the answer feels ambiguous
Three sources of confusion are worth separating.
First, "plants" can mean land plants or the whole green-plant lineage including algae. If "plants" means land plants, fungi clearly predate them. If "plants" means the entire Plantae/Archaeplastida lineage, the comparison becomes a deep eukaryotic divergence question with more uncertainty.
Second, "fungi" can mean the crown group (all living fungi and their most recent common ancestor) or the stem lineage (everything on the fungal branch after it split from animals). Stem-lineage origins are older than crown-group origins, and mixing the two produces inconsistent dates.
Third, "arise" is ambiguous between divergence, first fossil, and ecological expansion. A fungus-like fossil older than a plant fossil does not prove the fungal lineage diverged first; it proves something fungus-like was present. These are related but distinct claims.
A concrete illustration
Imagine three clocks. The divergence clock says the fungal branch separated from the animal branch deep in the Proterozoic, and the plant branch separated from other eukaryotes at a comparable or somewhat later depth—both very old. The fossil clock says the oldest reasonably secure fungus-like microfossils are Proterozoic, while the oldest land-plant fossils are Ordovician. The ecological clock says fungi were established in terrestrial ecosystems before plants arrived, and then formed partnerships (mycorrhizae) with early plants. All three clocks point toward "fungi first" in the everyday sense, but only the fossil and ecological clocks speak directly to "before land plants," while the divergence clock speaks to the deeper eukaryotic split and is more sensitive to rooting uncertainty.
What remains genuinely uncertain
The precise age of the earliest fungi and the earliest plants, because Proterozoic microfossils are hard to identify and molecular clocks carry wide error bars. The placement of the eukaryotic root, which affects statements about which major lineage diverged first. Whether specific Precambrian microfossils are truly fungal, fungal-like, or something else. The exact timing of the fungal–plant ecological relationship's origin; the Rhynie Chert shows it existed by the Early Devonian, but earlier evidence is sparse.
Bottom line
Fungi arose before plants in the sense that matters most: the fungal lineage is ancient, fungi existed before land plants, and fungi are not derived from plants. The claim is well supported by both molecular phylogenetics and the fossil record, with the caveat that "plants" should be read as land plants for the cleanest comparison, that the deepest eukaryotic divergence ordering is sensitive to unresolved rooting questions, and that the earliest fossil identifications carry real uncertainty. The everyday statement "fungi came before plants" is accurate; the technical statement "the fungal stem lineage diverged before the plant stem lineage" is probable but not settled with the precision that phrase might imply.