Fungi have shaped the biosphere since the development of life on Earth. Despite fungi being present in all environments, most of the available fungal research has focused on soils. As a result, the role and composition of fungal communities in aquatic (marine and freshwater) environments remain largely unexplored. The use of different primers to characterise fungal communities has additionally complicated intercomparisons among studies. Consequently, we lack a basic global assessment of fungal diversity across major ecosystems. Here, we took advantage of a recently published 18S rRNA dataset comprising samples from major ecosystems (terrestrial, freshwater, and marine) to attempt a global assessment of fungal diversity and community composition. We found the highest fungal diversities for terrestrial > freshwater > marine environments, and pronounced gradients of fungal diversity along temperature, salinity, and latitude in all ecosystems. We also identified the most abundant taxa in each of these ecosystems, mostly dominated by Ascomycota and Basidiomycota, except in freshwater rivers where Chytridiomycota dominated. Collectively, our analysis provides a global analysis of fungal diversity across all major environmental ecosystems, highlighting the most distinct order and ASVs (amplicon sequencing variants) by ecosystem, and thus filling a critical gap in the study of the Earth’s mycobiome.