Soil microbial diversity is crucial for regulating biogeochemical cycles, including soil carbon (C) dynamics and nutrient cycling. However, how climate, plants, and soil properties influence the microbiome in forests remains unclear, especially at the continental scale, hindering us to better understand forest C-climate change feedback. Here, we investigated the spatial patterns of microbial diversity across China's forests and explored the controlling factors of microbial β diversity and network complexity. Our results showed that soil pH strongly influenced bacterial and fungal β diversity compared to climate, soil nutrient and plant properties. To further investigate the environmental preference of the microbial networks, we classified the amplicon sequence variants (ASVs) into five groups ranging from acidic to alkaline soils. Co-occurrence network analysis revealed that the topological structure of the bacterial network (e.g., edge and degree) increased with pH and was negatively correlated with β diversity but not for fungal diversity. Soil fungi exhibited higher β diversity and network complexity (i.e., degree and betweenness) than bacteria in acidic soils (pH < 5.1), and vice versa in neutral and alkaline soils (pH > 5.5). Within the pH range of 5.1-5.5, the bacterial-fungal network displayed the highest network complexity with the lowest fungal β diversity, and significant positive correlations were found between fungal β diversity and soil properties. In addition, bacterial growth in acidic soil (pH < 5.5) showed positive correlations with acid phosphatase (AP), but negative ones with β-1,4-glucosidase (BG), and vice versa in neutral and alkaline soils (pH > 5.5). Furthermore, 46 bacterial core species were identified, and their abundance had significant correlation with soil pH. These findings highlight the critical role of soil pH in driving soil microbial β diversity across China's forests and reveal the effects of pH thresholds on changes in the soil microbial network and core species.