An implantable cardioverter-defibrillator (ICD) is a device designed to quickly detect a life-threatening, rapid heartbeat coming from the bottom chamber of the heart. It tries to convert an abnormal rhythm back to normal by delivering an electrical shock to the heart. This action is called defibrillation.