Agriculture is a major driver of global biodiversity loss 1,2 , accounts for one quarter of greenhouse gas emissions 3 , and is responsible for 70% of freshwater use 4,5 . How can land be used for agriculture in a way that minimises the impact on the world's natural resources while maintaining current production levels? Here, we solved this more than 10 million dimensional optimisation problem and find that moving current croplands and pastures to optimal locations, while allowing then-abandoned areas to regenerate, could simultaneously decrease the current carbon, biodiversity and water footprint of global agriculture by up to 71%, 91% and 100%, respectively. This would offset current net CO 2 emissions for half a century, massively alleviate pressure on global biodiversity and greatly reduce freshwater shortages. Whilst these achievements would require global coordination of agricultural policies, reductions of up to 59%, 78% and close to 100% are achievable by relocating production within national borders, with the greatest potential for carbon footprint reduction held by the world's top three CO 2 emitting countries.The conversion of almost half of the world's ice-free land area 6 to cropland and pasture has contributed to three of humanity's most pressing environmental challenges 7,8 : (1) agriculture accounts for a quarter of anthropogenic greenhouse gas emissions 3 , largely from the release of carbon stored in vegetation and soils 9,10 ;(2) agriculture is the predominant driver of habitat loss, the greatest threat to global biodiversity 1,2 ; and (3) agriculture is responsible for 70% of global freshwater usage for irrigation, leading to shortages of potable water in many arid areas of the world 4,5 . A rising demand for animal products 11 thwarts hopes that the potential for dietary shifts to decrease the environmental footprints of food production 7,12,13,8 can be fully realised in the near future. Yield increases through 1 more resource-efficient practices, technological advancements and genetically enhanced crop varieties are promising 7,14,8 , however a growing human population and increasing per-capita consumption 15,16 threaten to offset the potential of these advancements without complementary measures.Optimising the spatial distribution of production could help to minimise the impact of agriculture. Empirical evidence shows that biodiversity and carbon stocks previously lost through land conversion can rapidly reach pre-disturbance levels if these lands are allowed to regenerate, often without active human intervention (SI).Relocating croplands and pastures that are currently situated in areas with high potential biodiversity and carbon stocks, and subsequently allowing these areas to regenerate, may therefore lead to net carbon and biodiversity benefits. If, in addition, new agricultural areas were established where sufficient rainfall obviates the need for irrigation, the water footprint of global agriculture could be reduced significantly at the same time.We used global maps of the current dis...