Wastewater treatment involves multiple processes to remove contaminants from water and make it suitable for discharge. It begins with preliminary treatment to remove large solids through coarse screening and grit removal. Primary treatment uses sedimentation to remove settleable solids. Secondary treatment uses bacteria and protozoa to break down organic matter biologically. Tertiary treatment provides disinfection and additional nutrient removal. Sludge treatment involves anaerobic digestion to reduce solids volume, composting, and dewatering the sludge for use as fertilizer.