Electroconvulsive therapy is a psychiatric treatment that causes a generalized seizure by passing electrical current through the brain. ECT is often used as an intervention for mental disorders when other treatments are inadequate. Conditions responsive to ECT include major depressive disorder, mania, and catatonia.
The general physical risks of ECT are similar to those of brief general anesthesia. Immediately following treatment, the most common adverse effects are confusion and transient memory loss. Among treatments for severely depressed pregnant women, ECT is one of the least harmful to the fetus. From Wikipedia