Electroconvulsive therapy (ECT) is a medical treatment that involves delivering small electric currents to the brain to induce a brief seizure, primarily used to treat severe depression, treatment-resistant depression, and other mental health disorders. ECT is considered a last resort when other treatments have failed, but it can lead to rapid improvements in symptoms for many individuals. While the exact mechanism is not fully understood, it is believed to involve changes in brain chemistry and connectivity that help alleviate severe mood disorders.