Purpose To understand which environmental factors influence the distribution and ecological functions of bacteria in agricultural soil. Method A broad range of farmland soils was sampled from 206 locations in Jilin province, China. We used 16S rRNA genebased Illumina HiSeq sequencing to estimated soil bacterial community structure and functions. Result The dominant taxa in terms of abundance were found to be, Actinobacteria, Acidobacteria, Gemmatimonadetes, Chloroflexi, and Proteobacteria. Bacterial communities were dominantly affected by soil pH, whereas soil organic carbon did not have a significant influence on bacterial communities. Soil pH was significantly positively correlated with bacterial operational taxonomic unit abundance and soil bacterial α-diversity (P<0.05) spatially rather than with soil nutrients. Bacterial functions were estimated using FAPROTAX, and the relative abundance of anaerobic and aerobic chemoheterotrophs, and nitrifying bacteria was 27.66%, 26.14%, and 6.87%, respectively, of the total bacterial community. Generally, the results indicate that soil pH is more important than nutrients in shaping bacterial communities in agricultural soils, including their ecological functions and biogeographic distribution.