Inclusion Criteria:  ECT:  Patients (>18) referred to the center of ECT and accepted for treatment because of moderate and severe depression fulfilling the criteria for the following ICD-10 diagnosis: F 31.3 and F31.4; F32.1 and F32.2 and F32.3; F33.1 and F33.2 and F33.3. In addition, the symptom intensity must be verified by a MADRS score ≥ 25. There is no upper age for participation, however, the responsible clinician will consider if patients are eligible for inclusion (functioning, enabled to give informed consent).  TMS:  Patients (>18) referred to the center of TMS and accepted for treatment because of moderate and severe depression fulfilling the criteria for the following ICD-10 diagnosis: F 31.3 and F31.4; F32.1 and F32.2 and F32.3; F33.1 and F33.2 and F33.3. In addition, the symptom intensity must be verified by a MADRS score ≥ 25. There is no upper age for participation, however, the responsible clinician will consider if patients are eligible for inclusion (functioning, enabled to give informed consent).  Healthy controls:  Age and gender matched (to the patient groups). No history of psychiatric illness and no current depression. No contraindication for MRI scanning.  Exclusion Criteria:  ECT / TMS treatment within the last 12 months. Patients unable to give informed consent (according to the responsible clinician or ECT / TMS responsible). Patients who cannot participate in the MR scanning