The biogenic structures produced by termites, ants and earthworms provide key functions across global ecosystems1,2. However, little is known about the drivers of the soil engineering effects caused by these small but important invertebrates3 at the global scale. Here we show, on the basis of a meta-analysis of 12,975 observations from 1,047 studies on six continents, that all three taxa increase soil macronutrient content, soil respiration and soil microbial and plant biomass compared with reference soils. The effect of termites on soil respiration and plant biomass, and the effect of earthworms on soil nitrogen and phosphorus content, increase with mean annual temperature and peak in the tropics. By contrast, the effects of ants on soil nitrogen, soil phosphorus, plant biomass and survival rate peak at mid-latitude ecosystems that have the lowest primary productivity. Notably, termites and ants increase plant growth by alleviating plant phosphorus limitation in the tropics and nitrogen limitation in temperate regions, respectively. Our study highlights the important roles of these invertebrate taxa in global biogeochemical cycles and ecosystem functions. Given the importance of these soil-engineering invertebrates, biogeochemical models should better integrate their effects, especially on carbon fluxes and nutrient cycles.