Defibrillators are electronic devices that deliver an electric shock to the heart to stop an irregular heartbeat and restore a normal rhythm. There are two main types - internal defibrillators with electrodes implanted in the heart, and external defibrillators used on the chest wall. Automated external defibrillators (AEDs) are designed for public use and guide laypeople to deliver shocks safely. Defibrillation is an important treatment for life-threatening cardiac arrhythmias like ventricular fibrillation.