BackgroundPhosphorus (P) plays a vital role in plant growth. The pqqC and phoD genes serve as molecular markers for inorganic and organic P breakdown, respectively. However, the understanding of how P-mobilizing bacteria in soil respond to long-term fertilization and rhizobium application is limited. Herein, soil that had been treated with fertilizer and rhizobium for 10 years was collected to investigate the characteristics of P-mobilizing bacterial communities. Five treatments were included: no fertilization (CK), phosphorus fertilizer (P), urea + potassium fertilizer (NK), NPK, and PK + Bradyrhizobium japonicum 5821 (PK + R).ResultsThe soybean nodule dry weight was highest in the P treatment (1.93 g), while the soybean yield peaked in the PK + R treatment (3025.33 kg ha− 1). The abundance of the pqqC gene increased in the rhizosphere soil at the flowering-podding stage and in the bulk soil at the maturity stage under the P treatment, while its abundance increased in the bulk soil at the flowering-podding stage and in the rhizosphere soil at the maturity stage under the PK + R treatment. The abundance of the phoD gene was enhanced in the bulk soil at the flowering-podding stage under the PK + R treatment. The Shannon and Ace indexes of pqqC- and phoD-harboring bacteria were higher in the rhizosphere soil at maturity under the PK + R treatment compared to other treatments. Furthermore, a comprehensive analysis of the neutral community model and co-occurrence pattern demonstrated that the application of P fertilizer alone led to an increase in the distribution and dynamic movement of pqqC-harboring bacteria, but resulted in a decrease in complexity of network structure. On the other hand, rhizobium inoculation enhanced the distribution and dynamic movement of phoD-harboring bacteria, as well as the stability and complexity of the network structure. Pseudomonas and Nitrobacter, as well as Steptomyces, Stella, and Nonomuraea, may be crucial genera regulating the composition and function of pqqC- and phoD-harboring communities, respectively.ConclusionsThese findings affirm the crucial role of fertilization and rhizobium inoculation in regulating pqqC- and phoD-harboring bacterial communities, and highlight the significance of long-term phosphate-only fertilization and rhizobium inoculation in enhancing dissolved inorganic phosphorus and mineralized organophosphorus, respectively.