A drainage system collects and directs rainwater, wastewater, or excess water in the soil to a suitable outlet. Its purpose is to prevent waterlogging around buildings and roads, remove wastewater from plumbing fixtures, and control excess moisture in the ground. The main types of drainage systems include surface, subsurface, and sanitary drainage. Surface drainage uses gutters and channels to collect runoff from roofs and paved areas. Subsurface drainage uses buried pipes to remove excess water from the soil. Sanitary drainage carries wastewater from sinks, showers, and toilets to a sewer or an on-site treatment system. Common drainage system components include grates, inlets, drainage pipes, fittings, and inspection chambers. Inlets collect water, pipes carry it to an outlet, and inspection chambers provide access for maintenance and clearing blockages.