The process of removing contaminants from wastewater, including household sewage and runoff (effluents). It includes physical, chemical, and biological processes to remove physical, chemical and biological contaminants. Its objective is to produce an environmentally safe fluid waste stream (or treated effluent) and a solid waste (or treated sludge) suitable for disposal or reuse (usually as farm fertilizer).