An implantable cardioverter-defibrillator (ICD) is a battery-powered device placed under the skin to monitor the heart rate. If an abnormal heart rhythm is detected (i.e., the heart is beating chaotically or too fast), the device will deliver a shock to restore a normal heartbeat. ICDs can prevent cardiac arrest in high-risk patients.