Application of organic fertilizers or their combination with chemical fertilizers is a feasible practice for improving soil fertility and reducing soil degradation in agroecosystems, and these regulations are mainly mediated though soil microbial communities. Despite bacteria ranking among the most abundant and diverse groups of soil microorganisms, the effects of long-term organic fertilization (OF) and chemical–organic fertilization (COF) on soil bacterial diversity and community composition remain unclear. In this study, we conducted a meta-analysis and demonstrated that OF had no significant effect on bacterial alpha diversity. Application of chemical fertilizer and crop residue significantly decreased bacterial Richness index. Both OF and COF significantly altered bacterial community structure, with these changes being predominately attributed to shifts in soil pH. For bacterial phyla, both OF and COF significantly increased the relative abundance of Proteobacteria and Bacteroidetes, suggesting that OF and COF may cause the enrichment of copiotrophic taxa. In addition, COF significantly increased the relative abundance of Gammaproteobacteria but decreased the relative abundance of Acidobacteria. Overall, our results suggest that organic and chemical–organic fertilization can effectively maintain bacterial diversity and enhance soil fertility in agroecosystems, and the alteration of soil bacterial community structure is closely intertwined with soil pH.