The biodiversity-ecosystem function relationships are foundational to our understanding of the global extinction crisis and its ecological impacts. As the second largest carbon flux, soil respiration greatly influences the global carbon cycle, especially in carbon-rich forests. However, the tree species richness-soil respiration relationship remains unknown. Here, soil respiration was monitored monthly over 3 years in a large biodiversity experiment in subtropical forests. We found a unimodal relationship between soil respiration and richness ranging from 1, 4, 8, 16, to 32, with the highest emission appearing in approximately six-species mixtures. This nonlinear pattern was strongly confirmed by a meta-analysis of forests worldwide. Productivity was the first-order factor which could directly and indirectly promote soil respiration hrough increasing soil water contrnt and fungal community diversity. Incorporating the identified nonlinear relationship and ’tree species richness–productivity–soil moisture/fungal diversity-soil respiration’ pathway into carbon cycle models would improve the prediction of soil carbon dynamics in the context of climate change, deforestation and afforestation in forests.