All the results revealed that WSHM promotes soybean nodulation and growth by selectively regulating soybean gene expression and regulating the endophytic bacterial community, Sphingobium was the key bacterium involved in plant-microbe interaction. These findings refined our understanding of the mechanism of WSHM promoting soybean nodulation and growth and provided novel evidence for plant-endophyte interaction.