Plants exert a profound influence on their rhizosphere microbiome through the secretion of root exudates, thereby imparting critical effects on their growth and overall health. The results unveil that japonica rice showcases a remarkable augmentation in its antioxidative stress mechanisms under Cd stress. This augmentation is characterized by the sequestration of heavy metal ions within the root system and the prodigious secretion of a spectrum of flavonoids, including Quercetin, Luteolin, Apigenin, Kaempferide, and Sakuranetin. These flavonoids operate as formidable guardians, shielding the plant from oxidative damage instigated by Cd-induced stress. Furthermore, the metagenomic analyses divulge the transformative potential of flavonoids, as they induce profound alterations in the composition and structural dynamics of plant rhizosphere microbial communities. These alterations manifest through the recruitment of plant growth-promoting bacteria, effectively engineering a conducive milieu for japonica rice. In addition, our symbiotic network analysis discerns that flavonoid compounds significantly improved the positive correlations among dominant species within the rhizosphere of japonica rice. This, in turn, bolsters the stability and intricacy of the microenvironmental ecological network. KEGG functional analyses reveal a notable upregulation in the expression of flavonoid functional genes, specifically cadA, cznA, nccC, and czrB, alongside an array of transporters, encompassing RND, ABC, MIT, and P-ATPase. These molecular orchestrations distinctly demarcated the rhizosphere microbiome of japonica rice, markedly enhancing its tolerance to Cd-induced stress. These findings not only shed light on the establishment of Cd-resistant bacterial consortia in rice but also herald a promising avenue for the precise modulation of plant rhizosphere microbiomes, thereby fortifying the safety and efficiency of crop production.