Abstract
Aims The mechanism by which species diversity drives productivity in different ecosystems is controversial, possibly due to the confounding effects of key environmental variables. Karst ecosystems are fragile and are at great risk of species loss. In these ecosystems, soil depth is a key driver of community diversity and productivity. However, the influence of soil depth on the relationship between species diversity and productivity in karst ecosystems remains unclear.Methods We established artificial karst herbaceous communities with different soil depths and species richness levels and determined how two biodiversity effects—complementarity effect (effect of positive interactions among species) and selection effect (effect due to dominance of productive species)—contributed to productivity.Results Soil depth, species diversity, and different species combinations were significant predictors of productivity. Species diversity significantly positively affected productivity at all three soil depths, with the effect size of species diversity being the greatest in medium-depth soil. Net diversity effects were greater than 0 in all multi-species communities, indicating that complementarity and selection effects both positively influenced productivity. However, complementarity effect had a greater contribution to productivity than selection effect in all multi-species communities. Furthermore, the contribution of complementarity effect increased with increasing soil depth, while that of selection effect decreased.Conclusions Soil depth influences the relationship between species diversity and productivity in karst herbaceous communities. Furthermore, complementarity effect is the major mechanism by which diversity increases community productivity, particularly in shallow soil. Therefore, environmental variables should be seriously considered when studying the relationship between species diversity and function in other ecosystems.