Nature reserves are crucial for protecting biological habitats and maintaining biodiversity. Soil bacterial community plays an irreplaceable role in the structure and function of ecosystem. However, the impact of nature reserves on soil bacterial communities is still unclear. To explore the effects of desert grassland nature reserve management on soil microbial communities, we compared the differences in soil bacterial community composition, α-diversity and community structure inside and outside a desert grassland nature reserve, and explored the correlation between soil bacterial communities and plant biomass and soil chemical index. We found that (1) the relative abundance of Acidobacteriota is highest in the soil both inside and outside the nature reserve in shrub grassland; (2) the Chao1 index of soil bacterial communities in the core protected zone and general control zone of the reserve was significantly higher than that outside the reserve (p < 0.05) in the shrub grassland. Similarly, in the herbaceous grassland, the Shannon index of soil bacterial communities was significantly higher in the core protected zone of the reserve than that outside the reserve (p < 0.05). (3) While we found no significant difference in soil bacterial community structure between inside and outside the reserve in the shrub grassland, we found that the soil bacterial community structure in the core protected zone was significantly different from that outside the reserve in the herbaceous grassland (p < 0.05); (4) we also found that higher plant productivity and soil nutrients promoted most soil dominant bacterial phyla, while higher soil pH and salinity inhibited most soil dominant bacterial phyla. Our findings thus help better understand the influencing factors of and the mechanisms behind variation in soil bacterial communities inside and outside desert grassland nature reserves.