The bilge pump is hung over the rail so that the float switch is on the water. Boat/wave motion results in the float switch pumping water out of the boat.