An implantable cardioverter defibrillator, or ICD, makes the heart beat more regularly when it is beating too fast or irregularly.