Abstract: An implantable electrical heart defibrillation system for both ventricle and atrium is proposed and is characterized in that it acts in a manner such as:to diagnose the type of arrhythmia within a maximum time of 2 seconds from the onset of the arrhythmia;to deliver the therapeutic shock by electrodes implanted in the region to be defibrillated no more than 4-5 seconds after the recognition of the arrhythmia, if it is ventricular fibrillation, so that the patient does not loose consciousness;immediately after the onset of the arrhythmia and before the defibrillation shock is delivered, to prevent the conduction of neural pain signals coming from the region in which the electric shock acts, by nerve stimulation by a catheter inserted in the spinal column, utilizing the gate effect, or by the perfusion of a drug with immediate analgesic effect by an infusion pump and a catheter positioned in the region affected by the pain signals.