Definition. 1  Electroconvulsive therapy (ECT) is a medical treatment for severe mental illness in which a small, carefully controlled amount of electricity is introduced into the brain. This electrical stimulation, used in conjunction with anesthesia and muscle relaxant medications, produces a mild generalized seizure or convulsion.