Soil microorganisms are important components of soil ecosystems, and their diversity plays an important role in maintaining their functional stability. Organic fertilizer is an important measure for improving soil fertility in agronomic practice. The effects of organic fertilizer on soil microbial diversity and community structure are different with different degrees of maturation. In this study, uncomposted organic fertilizer (R), high-temperature organic fertilizer (H), cooling organic fertilizer (C), and decomposed organic fertilizer (D) were applied, and the 16S rRNA gene sequences of bacteria in soil were analyzed via high-throughput sequencing technology to understand the effects of organic fertilizer with different degrees of maturation on bacterial diversity and community structure in saline soil. Compared with no fertilization, the uncomposted organic fertilizer, high-temperature organic fertilizer, and decomposed organic fertilizer treatments significantly reduced soil bacterial diversity: the decomposed organic fertilizer treatment significantly reduced soil bacterial richness, the cooling organic fertilizer treatment had no significant effect on soil bacterial diversity and bacterial richness, Proteobacteria representing soil nutrients significantly increased under the cooling organic fertilizer treatment, and the relative abundance of Firmicutes significantly decreased. These four organic fertilizers, with different degrees of maturation, significantly increased the beneficial bacterium Bacillus and nitrile-based degrading bacteria but also significantly increased the potential pathogenicity of the soil, and there was no significant difference between the four treatments. In addition, during a cooling period, the organic fertilizer treatment helped to increase the population of oxidative-stress-tolerant bacteria. The application of organic fertilizer during a cooling period to saline–alkali soil is more helpful in improving its nutrient levels.