Excessive IL-17A combines with the specific receptor IL-17Rc in microglia and astrocytes, further activates microglia M1 phenotype and astrocyte A1 phenotype and triggers IDO enzyme activity, thereby causing neurotransmitter metabolism and inducing depression-like behaviors. This evidence concerns the gene IDO1 and depressive disorder.