Implanting a pacemaker is the process of pacemaker surgery. A pacemaker is made up of one to three tiny electrical wires that are placed in the heart chambers and a pulse generator with electronics and a battery. The pacemaker creates precisely timed electrical pulses that start a heartbeat and maintain a healthy cardiac rhythm. Numerous problems related to heart rhythm are treated by pacemaker surgery. It can be used to children with congenital heart defects, while it is more frequently done on adults with cardiac issues. Although local anesthesia is used for most pacemaker installations, intravenous (IVF) medication may also be used to induce relaxation.