Root‐associated fungi (RAF) are an important factor affecting the host's growth, and their contribution to Pinus sylvestris var. mongolica plantation decline is substantial. Therefore, we selected three age groups of P. sylvestris plantations (26, 33, and 43 years), in the Mu Us Desert, to characterize the community structure and functional groups of RAF, identified by Illumina high‐throughput sequencing and FUNGuild platform, respectively. The effects of soil properties and enzyme activities on fungal diversity and functional groups were also examined. The results indicated that (a) 805 operational taxonomic units of RAF associated with P. sylvestris belonged to six phyla and 163 genera. Diversity and richness were not significantly different in the three age groups, but community composition showed significant differences. Ascomycota and Basidiomycota dominated the fungal community, while Rhizopogon dominated in each plot. (b) The proportion of pathotrophs decreased with increasing age, while that of symbiotrophs increased sharply, which were mainly represented by ectomycorrhizal fungi. (c) Stand age and soil enzyme activity had a greater influence on fungal community composition than did soil properties, whereas environmental variables were not significantly correlated with fungal diversity and richness. Dynamics of fungal community composition and functional groups with the aging plantations reflected the growth state of P. sylvestris and were related to plantation degradation.