Turning wastewater into drinking water:
Wastewater can be converted into drinking water in an organic process starting with algae.
The algae remove ammonia, phosphate and nitrate, significantly reducing the pathogen load; a centrifuge removes the algae; and an ultraviolet radiation system developed at EET kills any leftover pathogens. All that remains for clean, potable water is to adjust the pH level.
Source: https://www.rit.edu/showcase/index.php?id=167