Abstract: Objective: To analyze the mechanism of Yangyin Shugan Capsules in treating depression based on network pharmacology and molecular docking technology. Methods:Active ingredients and targets of Yangyin Shugan Capsules were retrieved using the Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform. Depression-related genes were collected from GeneCards, DrugBank, TTD, OMIM, and PharmGKB databases. Protein-protein interaction (PPI) networks were constructed using Cytoscape 3.10.0, and core targets were screened. Gene Ontology (GO) functional enrichment analysis and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analysis were performed using R Studio. Finally, the affinity between core targets and main active ingredients was verified by Schrödinger molecular docking. Results : A total of 94 active ingredients and 231 corresponding targets of Yangyin Shugan Capsules were obtained. There were 4 467 depression-related targets, with 177 intersecting targets between the drug and the disease. The main active ingredients included quercetin, kaempferol, luteolin, naringenin, isorhamnetin, beta-sitosterol, stigmasterol, and hyndarin. The core targets included tumor protein p53( TP53),AKT serine/threonine kinase 1( AKT1),heat shock protein 90 alpha family class A member 1 (HSP90AA1), estrogen receptor 1 (ESR1), tumor necrosis factor (TNF), interleukin-6 (IL-6), mitogen-activated protein kinase (MAPK)1, and MAPK3. GO analysis involved 2 918 entries, while KEGG enrichment analysis identified 187 pathways,including lipid and atherosclerosis,phosphatidylinositol 3-kinase( PI3K) -AKT signaling pathway, and chemical carcinogenesis-receptor activation. Molecular docking results showed that luteolin and naringenin exhibited low binding energy and high affinity with TNF, ESR1, and HSP90AB1, while quercetin and isorhamnetin showed low binding energy and good affinity with ESR1. Conclusion: Yangyin Shugan Capsules exert antidepressant effects by acting on targets such as TP53, AKT1, HSP90AA1, ESR1, TNF, IL-6, MAPK1, and MAPK3 through ingredients including quercetin, kaempferol, luteolin, naringenin, isorhamnetin, beta-sitosterol, stigmasterol, and hyndarin, and by regulating signaling pathways such as lipid and atherosclerosis, PI3K-AKT,and chemical carcinogenesis-receptor activation.