A drainage system is a network of pipes and channels designed to remove excess water and waste from a building or an area. The purpose of a drainage system is to prevent flooding, water damage, and the buildup of harmful bacteria and waste materials.