A sump pump prevents water damage and flooding in basements or crawl spaces. It helps manage water levels, removes excess water, and directs it away from the foundation. It collects water in a sump basin and pumps it out to a safe drainage point.