Sunlight shining on specialized floaties can now produce fuel for plants by recovering ammonia from wastewater. Researchers designed a floatable amino-grafted (-NH2) MXene (Ti3C2)-based (AMS) sponge that, when scaled efficiently, can provide two sustainable solutions simultaneously: cleaning up wastewater and providing ammonia (NH3), an essential nitrogen source for plants, to farmers at a lower cost.