Transcranial magnetic stimulation (TMS) is a non-invasive procedure that uses magnetic fields to stimulate specific areas of the brain to improve symptoms of psychiatric and neurological disorders. An electromagnetic coil is placed on the scalp, which generates magnetic pulses that travel through the skull to nerve cells in the brain, altering their electrical activity. TMS can be used for conditions such as depression, obsessive-compulsive disorder (OCD), and anxiety, and is often considered when other treatments have failed.