A Chinese team has developed a method of converting nitrate in wastewater into ammonia.