A groundbreaking new reactor can simultaneously transform wastewater contaminated with nitrates into clean drinking water and produce ammonia, a valuable industrial chemical. This technology could revolutionize water treatment and reduce the reliance on the energy-intensive Haber-Bosch process for ammonia production.