Elevated CO2 led to higher Cd and Pb removal in rhizosphere soils. Elevated CO2 increased organic compound contents in the rhizosphere under Cd + Pb. Elevated CO2 affected microbial community in the rhizosphere under Cd + Pb stress. Elevated CO2 benefited the rhizosphere microenvironment under Cd + Pb stress.