Warm and salty wastewater is a by-product of many industries, including oil and gas production, seafood processing and textile dyeing. KAUST researchers are exploring ways to detoxify such wastewater while simultaneously generating electricity. They are using bacteria with remarkable properties: the ability to transfer electrons outside their cells (exoelectrogenes) and the capacity to withstand extremes of temperature and salinity (extremophiles).