In recent years, heavy metal pollution has become a global environmental problem and poses a great threat to the health of people and ecosystems. Therefore, strategies for the effective remediation of Cd from contaminated soil are urgently needed. In this study, ryegrass was utilized as a remediation plant, and its remediation potential was enhanced through the application of Citric Acid (CA) in conjunction with Bacillus megaterium (B. megaterium). The P3 treatment (CA + Bacillus megaterium) exhibited a significantly higher efficiency in promoting cadmium extraction by ryegrass, resulting in a 1.79-fold increase in shoot cadmium accumulation compared to the control group (CK) with no Bacillus megaterium or CA. Moreover, the P3 treatment led to an increased abundance of Actinobacteriota, Acidobacteriota, and Patescibacteria in the rhizosphere. The concentration of amino derivatives (such as betaine, sulfolithocholylglycine, N-alpha-acetyl-lysine, glycocholic acid, arginyl-threonine) showed significant upregulation following the P3 treatment. In summary, this study proposes a viable approach for phytoremediation of soil contaminated with cadmium by harnessing the mobilizing abilities of soil bacteria.