The main task of the drainage system is to capture and drain rainwater from the roof.