Although purification of water via membranes is usually done for drinking water and desalination, they can also be used for wastewater treatment.