ECT seems to work by causing changes to the chemistry and functioning of the brain. This can help reverse the symptoms of depression and some mental illnesses.