The variation in the soil microbial community along the altitude gradient has been widely documented. However, the structure and function of the microbial communities distributed along the altitude gradient in the crater still need to be determined. We gathered soil specimens from different elevations within the Nushan volcano crater to bridge this knowledge gap. We investigated the microbial communities of bacteria and fungi in the soil. It is noteworthy that the microbial alpha diversity peaks in the middle of the crater. However, network analysis shows that bacterial (nodes 760 vs 613 vs 601) and fungal (nodes 328 vs 224 vs 400) communities are most stable at the bottom and top of the crater, respectively. Furthermore, the soil microbial network exhibited a decline, followed by an increase across varying altitudes. The core microorganisms displayed the highest correlation with pH and alkaline phosphatase (AP, as determined through redundancy analysis (RDA) and Mantel tests for correlation analysis. The fungal community has a higher number of core microorganisms, while the bacterial core microorganisms demonstrate greater susceptibility to environmental factors. In conclusion, we utilized Illumina sequencing techniques to assess the disparities in the structure and function of bacteria and fungi in the soil.IMPORTANCEThese findings serve as a foundation for future investigations on microbial communities present in volcanic soil.