A pacemaker is a medical device that uses electrical pulses to regulate an abnormal heart rhythm. The first pacemaker was implanted in 1958. Modern pacemakers are battery-powered and implanted surgically. They have leads placed in the heart to sense the heart's rhythm and deliver electrical pulses when needed. Pacemakers are programmed to pace one or both chambers of the heart and can inhibit or trigger pacing. Common indications include sinus node dysfunction and heart block. Pacemaker implantation involves accessing a vein, placing leads in the heart, testing the leads, securing the pacemaker generator, and closing the incision. Complications can include bleeding, infection, and lead issues.