IntroductionUnderstanding microbial communities in diverse ecosystems is crucial for unraveling the intricate relationships among microorganisms, their environment, and ecosystem processes. In this study, we investigated differences in the fungal community structure and diversity in soils from two contrasting climatic and vegetation conditions: the Xinjiang western China plateau and the Fujian southeastern coastal province.MethodsA total of 36 soil samples collected from two climatic regions were subjected to high-throughput ITS gene sequencing for fungal community analysis. In conjunction soil physicochemical properties were assessed and compared. Analyses included an examination of the relationship of fungal community structure to environmental factors and functional profiling of the community structure was using the FUNGuild pipeline.ResultsOur data revealed rich fungal diversity, with a total of 11 fungal phyla, 31 classes, 86 orders, 200 families, 388 genera, and 515 species identified in the soil samples. Distinct variations in the physicochemical properties of the soil and fungal community structure were seen in relation to climate and surface vegetation. Notably, despite a colder climate, the rhizosphere soil of Xinjiang exhibited higher fungal (α-)diversity compared to the rhizosphere soil of Fujian. β-diversity analyses indicated that soil heterogeneity and differences in fungal community structure were primarily influenced by spatial distance limitations and vegetation type. Furthermore, we identified dominant fungal phyla with significant roles in energy cycling and organic matter degradation, including members of the Sordariomycetes, Leotiomycetes, Archaeosporomycetes, and Agaricomycetes. Functional analyses of soil fungal communities highlighted distinct microbial ecological functions in Xinjiang and Fujian soils. Xinjiang soil was characterized by a focus on wood and plant saprotrophy, and endophytes, whereas in Fujian soil the fungal community was mainly associated with ectomycorrhizal interactions, fungal parasitism, and wood saprotrophy.DiscussionOur findings suggest fungal communities in different climatic conditions adapt along distinct patterns with, plants to cope with environmental stress and contribute significantly to energy metabolism and material cycling within soil-plant systems. This study provides valuable insights into the ecological diversity of fungal communities driven by geological and environmental factors.