Background Soil microbes can affect both the invasiveness of exotic plants and the invasibility of native plant communities, but it still remains unclear whether soil microbes can influence the relationship between native plant diversity and community invasibility.Methods We constructed native plant communities with three levels of species richness (one, three, or six species) in unsterilized or sterilized soil (i.e., with or without soil microbes) and either prevented their invasion by exotic plants or allowed them to be invaded by each of three exotic species (Solidago canadensis, Erigeron canadensis or Symphyotrichum subulatum), which are highly invasive in China. The soils conditioned by the native plant communities that were not invaded by the exotic species were used as soil microbe inocula to test whether species richness-induced differences in soil microbes affected the growth of each of the three invasive species.Results Compared with soils containing microbes, the absence of soil microbes weakened the negative species richness-invasibility relationship, indicating that soil microbes can contribute to higher invasion resistance in more diverse native plant communities. In the presence of soil microbes, the higher invasion resistance of more diverse communities was mainly ascribed to the complementarity effect. However, soil microbes from communities with a higher species richness did not have a stronger negative effect on the growth of any of the three invasive species. Conclusion Soil microbes can alter the diversity-invasibility relationship by promoting the complementarity effect on community invasion resistance. Our results highlight the importance of integrating the role of soil microbes when testing the diversity-invasibility hypothesis.