A sump pump works to keep your basement dry by automatically pumping out and diverting water away from your home when it starts to accumulate in a sump pit or basin.