Hydrogen fuel production technology has been repurposed to destroy contaminants in wastewater, including hard-to-treat pharmaceutical compounds.