Summary Solidago gigantea is one of the most problematic species of invasive plants in Europe, where its rapid spread threatens the stability of ecosystems. The effect of invasion by S. gigantea on soil ecosystems and food webs can be evaluated using nematode communities as suitable and useful soil bioindicators. We compared the effect of S. gigantea on nematode communities in plots invaded with S. gigantea and non-invaded grasslands across three sites with varying soil and climatic conditions. Our findings indicated that invasion by S. gigantea did not strongly affect nematode taxonomic diversity but negatively affected functional diversity. This effect was evident in the increased abundance of bacterivore and fungivore nematodes and decrease in values of ecological and functional indices. The evaluation of the soil food web using nematode communities confirmed that soil in plots with S. gigantea were less mature and more disturbed with a degraded or depleted food web indicated by lower values of maturity, enrichment and structure indices, compared with non-invaded grasslands. On the other hand, taxonomic diversity, abundance, biomass and the functional indices differed between three study sites, but site had little or no effect on the values of the maturity indices. The interaction between site and invasion status confirmed the effect of invasion on nematode biomass, with the abundance of bacterivore and fungivore nematodes and the functional indices more prominent at sites characterised by cold and humid climates. These findings underscore the importance of considering both taxonomic and functional diversity and the characteristics of the plants and sites when evaluating the impact of plant invasion on soil biota.