A sump pump is a device that pumps water out of a basement or crawl space to prevent flooding. It is installed in a sump pit, which is a hole dug in the floor of the basement or crawl space that collects water from the surrounding area. The sump pump then pumps the water out of the pit and away from the home.