The invention belongs to the field of medicines and relates to a dihydro isoquinoline compound and application thereof in treatment of mental disorder, related to emotion, especially depressive disorder. Shown in a structural formula I, the dihydro isoquinoline compound has good protection activity on PC12 cells damaged under the induction action of corticosterone in an in vitro experiment, which suggests that the dihydro isoquinoline compound has a function of protecting nerve cells, further experiments verify that the dihydro isoquinoline compound can effectively improve level of BNDF (brain-derived neurotrophic factor) in nerve cells, the oxidation resistance of the nerve cells can also be effectively enhanced, and growth of the nerve cells is promoted; the dihydro isoquinoline compound has potential of treating mental disorder owning to repairing and protective effect on the nerve cells, is preferable for treating emotion and cognitive mental disorders, such as depressive disorder, senile dementia, anxiety, obsession and schizophrenia and is especially preferable for treatment of depression. In vivo experiments, including forced swimming and open field experiment, the dihydro isoquinoline compound shows obvious effect of alleviating depressive state of experimental animals respectively. The formula (I) is described in the specification.