Use of an electronic device (defibrillator) to stop fibrillation by delivering a brief electric shock to the heart. The shock may be delivered to the surface of the chest, as by an automated external defibrillator (AED), or directly into the heart through wire leads, using an implantable cardioverter defibrillator (ICD)