Crop rotations including legumes have been proposed as a strategy to enhance food production. Here, the authors conduct a global meta-analysis on legume-based crop rotations, showing that legume pre-crops increase 20% of yield in average across various crops and climatic regions.