Correction to: Nature https://doi.org/10.1038/s41586-023-05941-9 Published online 26 April 2023

In the version of this article initially published, there was an error in the y-axis of Fig. 3d, where the column label now reading “Soil N content” appeared originally as “Soil C content”; the label has been amended in the HTML and PDF versions of the article.