IntroductionIn recent years, the frequency and intensity of anthropogenic wildfires have drastically increased, significantly altering terrestrial ecosystems worldwide. These fires not only devastate vegetative cover but also impact soil environments and microbial communities, affecting ecosystem structure and function. The extent to which fire severity, soil depth, and their interaction influence these effects remains unclear, particularly in Pinus tabulaeformis forests.MethodsThis study investigated the impact of wildfire intensity and soil stratification on soil physicochemical properties and microbial diversity within P. tabulaeformis forests in North China. Soil samples were collected from different fire severity zones (Control, Light, Moderate, High) and depths (topsoil: 0–10 cm; subsoil: 10–20 cm). Analyses included measurements of soil pH, organic carbon (SOC), total nitrogen (TN), and other nutrients. Microbial diversity was assessed using 16S rRNA gene sequencing.ResultsOur findings revealed significant variations in soil pH, SOC, TN, and other nutrients with fire severity and soil depth, profoundly affecting microbial community composition and diversity. Soil pH emerged as a critical determinant, closely linked to microbial α-diversity and community structure. We found that fire severity significantly altered soil pH (p = 0.001), pointing to noteworthy changes in acidity linked to varying severity levels. Topsoil microbial communities primarily differentiated between burned and unburned conditions, whereas subsoil layers showed more pronounced effects of fire severity on microbial structures. Analysis of bacterial phyla across different fire severity levels and soil depths revealed significant shifts in microbial communities. Proteobacteria consistently dominated across all conditions, indicating strong resilience, while Acidobacteriota and Actinobacteriota showed increased abundances in high-severity and light/moderate-severity areas, respectively. Verrucomicrobiota were more prevalent in control samples and decreased significantly in fire-impacted soils. Chloroflexi and Bacteroidota displayed increased abundance in moderate and high-severity areas, respectively. Correlation analyses illustrated significant relationships between soil environmental factors and dominant bacterial phyla. Soil organic carbon (SOC) showed positive correlations with total nitrogen (TN) and alkaline hydrolysable nitrogen (AN). Soil pH exhibited a negative correlation with multiple soil environmental factors. Soil pH and available phosphorus (AP) significantly influenced the abundance of the phylum Myxococcota. Soil water content (WC) significantly affected the abundances of Acidobacteriota and Actinobacteriota. Additionally, ammonium nitrogen (NH4+-N) and nitrate nitrogen (NO3−-N) jointly and significantly impacted the abundance of the phylum Chloroflexi.DiscussionThis study highlights the significant long-term effects of anthropogenic wildfires on soil microenvironment heterogeneity and bacterial community structure in P. tabulaeformis forests in North China, 6 years post-fire. Our findings demonstrate that fire severity significantly influences soil pH, which in turn affects soil nutrient dynamics and enhances microbial diversity. We observed notable shifts in the abundance of dominant bacterial phyla, emphasizing the critical role of soil pH and nutrient availability in shaping microbial communities. The results underscore the importance of soil stratification, as different soil layers showed varying responses to fire severity, highlighting the need for tailored management strategies. Future research should focus on long-term monitoring to further elucidate the temporal dynamics of soil microbial recovery and nutrient cycling following wildfires. Studies investigating the roles of specific microbial taxa in ecosystem resilience and their functional contributions under varying fire regimes will provide deeper insights. Additionally, exploring soil amendments and management practices aimed at optimizing pH and nutrient availability could enhance post-fire recovery processes, supporting sustainable ecosystem recovery and resilience.