Phosphorus in fertilizer is crucial to feeding the world but too much of the element in the environment is disastrous. A revolution in capturing phosphorus from wastewater is underway. Phosphorus recovery will improve water quality and create a more sustainable food system.