Repetitive Transcranial Magnetic Stimulation (rTMS) is a safe and non-invasive tool to modulate neurophysiologic activity of the focal brain. Therefore, pain relief by rTMS can be obtained from motor cortex stimulation, restoration of defective inhibitory process, and deactivation of medial pain system. Studies have shown that motor cortex stimulation using rTMS can relieve pain in patients with neuropathic pain. However, to our knowledge, there is no rTMS study on chronic somatoform pain in psychiatric patients. The purpose of this study is to evaluate the effect of motor cortex rTMS on chronic somatoform pain.