Pacemakers are used to treat some forms of bradycardia, a condition in which the heart beats too slowly.