Similarly to patients with depression, people with persistent OCD that doesn’t respond to other treatments may be referred to TMS offices. According to the International OCD Foundation, research shows OCD can be successfully treated with TMS, and in recent years, it has become a more common treatment for this mental illness. TMS magnetic coils send pulses into the areas of the brain that are associated with OCD, altering the cranial nerve behavior.