(TMS) is a noninvasive procedure that uses magnetic fields to stimulate nerve cells in the brain to improve symptoms of depression. TMS is typically used when other depression treatments haven’t been effective. TMS is primarily used to treat major depressive disorder (MDD), sometimes simply called depression.