Drainage is used to remove underground water, most of the time by using perforated or slit pipes. Building drainage generally refers to all necessary means for drainage that are used to protect buildings against damage from humidity or moisture from the surrounding soil.