The process of removing pollutants from wastewater using physical, chemical, and biological processes.