Many people wonder about the function of a pacemaker. A pacemaker regulates the heart's electrical impulses, normalizing the heart rhythm. In doing so, it can significantly improve a patient's quality of life and potentially extend their lifespan. An implantable cardioverter-defibrillator (ICD), on the other hand, is a life-saving device that protects against sudden cardiac arrest.