Weeping cypress is an endemic tree species that is widely planted in China, and the simple stand structure and fragile ecosystem of its plantation are common issues. Exploring the effect of different gap sizes on the soil bacterial community structure of weeping cypress plantations can provide a theoretical basis for the near-natural management of forest plantations. We, therefore, constructed three kinds of forest gaps with different sizes in weeping cypress plantations, namely, small (50–100 m2), medium (100–200 m2), and large gaps (400–667 m2), for identifying the key factors that affect soil bacterial communities following the construction of forest gaps. The results suggested that the herb layer was more sensitive than the shrub layer, while the Simpson, Shannon, and richness indices of the herb layer in plots with gaps were significantly higher than those of designated sampling plots without any gaps (CK). The presence of large gaps significantly increased the understory plant diversity and the Shannon and Simpson indices of the soil bacterial alpha diversity. There were obvious changes in the community composition of soil bacteria following the construction of forest gaps. The dominant bacterial phyla, orders, and functions were similar across the plots with different gap sizes. Of the indicator bacterial species, the abundance of the nitrogen-fixing bacteria, Lysobacter_ yangpyeongensis, and Ensifer_meliloti, was significantly different across plots with different gap sizes and accounted for a large proportion of the bacterial population of plots with medium and large gaps. The understory plant diversity was mostly related to the soil bacterial community than to other soil factors. The results of structural equation modeling indicated that the understory plant diversity was the most important environmental factor in driving the composition and diversity of bacterial communities. The construction of forest gaps significantly improved the understory plant diversity, physicochemical properties of the soil, and bacterial diversity in weeping cypress plantations, and the results of the comprehensive evaluation were in the order: large gaps > small gaps > medium gaps > CK. Our results suggested that large gaps are beneficial for the diversity of above-ground plant communities and underground soil bacterial communities.