Intercropping of soybean and sugarcane is an important strategy to promote sustainable development of the sugarcane industry. In fact, our understanding of the interaction between the rhizosphere and bacterial communities in the intercropping system is still evolving; particularly, the influence of different sugarcane varieties on rhizosphere bacterial communities in the intercropping process with soybean, still needs further research. Here, we evaluated the response of sugarcane varieties ZZ1 and ZZ9 to the root bacterial community during intercropping with soybean. We found that when ZZ9 was intercropped with soybean, the bacterial diversity increased significantly as compared to that when ZZ1 was used. ZZ9 played a major role in changing the bacterial environment of the root system by affecting the diversity of rhizosphere bacteria, forming a rhizosphere environment more conducive to the growth of sugarcane. In addition, our study found that ZZ1 and ZZ9 had differed significantly in their utilization of nutrients. For example, nutrients were affected by different functional genes in processes such as denitrification, P-uptake and transport, inorganic P-solubilization, and organic P-mineralization. These results are significant in terms of providing guidance to the sugarcane industry, particularly for the intercropping of sugarcane and soybean in Guangxi, China.