Ectomycorrhizal fungi have huge potential value, both nutritionally and economically, but most of them cannot be cultivated artificially. To better understand the influence of abiotic and biotic factors upon the growth of ectomycorrhizal fungi, mycosphere soil and bulk soil of five ectomycorrhizal fungi (Calvatia candida, Russula brevipes, Leucopaxillus laterarius, Leucopaxillus giganteus, and Lepista panaeola) were used as research objects for this study. Illumina MiSeq sequencing technology was used to analyze the community structure of the mycosphere and bulk soil bacteria of the five ectomycorrhizal fungi, and a comprehensive analysis was conducted based on soil physicochemical properties. Our results show that the mycosphere soil bacteria of the five ectomycorrhizal fungi are slightly different. Escherichia, Usitatibacter, and Bradyrhizobium are potential mycorrhizal-helper bacteria of distinct ectomycorrhizal fungi. Soil water content, soil pH, and available potassium are the main factors shaping the soil bacterial community of the studied ectomycorrhizal fungi. Moreover, from the KEGG functional prediction and LEfSe analysis, there are significant functional differences not only between the mycosphere soil and bulk soil. 'Biosynthesis of terpenoidsand steroids', 'alpha-Linolenic acid metabolism', 'Longevity regulating pathway-multiple species', 'D-Arginine and D-ornithine metabolism', 'Nitrotoluene degradation' and other functions were significantly different in mycosphere soil. These findings have pivotal implications for the sustainable utilization of ectomycorrhizal fungi, the expansion of edible fungus cultivation in forest environments, and the enhancement of derived economic benefits.