Plants are expected to affect soil nematode communities. However, comparative studies on the direct and indirect ways dominant plants influence soil nematode communities are rare. In this study, we compared the effects of a dominant allelopathic plant, Ligularia virgaurea, and a dominant facilitative plant, Dasiphora fruticosa, on soil nematode richness and community composition in an alpine meadow of the Tibetan plateau. Our result indicated that 1) D. fruticosa significantly increased nematode richness whereas L. virgaurea had no significant effect; 2) D. fruticosa had no significant impact on bacterial and fungal richness, but L. virgaurea increased fungal richness; 3) D. fruticosa had strong positive direct, and weak positive indirect, effects on nematode richness, mainly mediated by a marginal decrease in fungal richness. By contrast, L. virgaurea had no significant direct effect on soil nematode richness but had strong indirect effects, mainly mediated by changes in soil pH and soil organic carbon content; 4) L. virgaurea influenced soil nematode community composition predominantly through direct effects but also indirectly through soil organic carbon. By contrast, D. fruticosa affected nematode communities through changes in understory plant communities, soil physiochemical, and microbial communities. Both facilitative and allelopathic plants thus influence soil nematode richness and community composition but seemingly in different ways. These highlight the importance of plants in determining soil community diversity and provide new insight to disentangle the complex above- and belowground linkages.