A sump pump prevents water accumulation by diverting excess water away from your basement, preventing flooding and water damage.