Sedimentation is used in water and wastewater treatment to separate solids from liquid using gravity. It occurs after coagulation and flocculation in water treatment and is used for grit removal, primary clarification, and activated sludge settling in wastewater treatment. Sedimentation basins come in circular, rectangular, or square shapes and have four functional zones - the inlet zone, settling zone, sludge zone, and outlet zone. The design of these zones aims to evenly distribute flow, optimize settling conditions, remove settled sludge efficiently, and minimize resuspension of solids.