The aim of this study was to investigate the effect of direct brain electrical stimulation (TDCS) in patients with major depressive disorder based on the criteria for entering the age of 18 to 65, both sexes have male and female, sixth grade primary education, no physical illness, other psychiatric disorders, family history of bipolar disorder, mental retardation, pregnancy after a clinical interview by psychologist and psychiatrist. The DSM-IV-TR diagnostic criteria and the score of over 18 in the Hamilton test are performed. Patients are randomly divided into case and control groups. In the control group, the SSRI drug is used and the electrodes are attached, but no electrical stimulation is performed. In the case group, in addition to the use of SSRI, electrodes are attached after preparing the subject, with the declaration of his readiness, a direct electric stimulation with a tDCS device with an intensity of 2 milliamperes is performed for 20 minutes per day during the week for 20 sessions. Hamilton test is repeated once before tDCS and then 4 weeks, 8 weeks, and 12 weeks after tDCS.