Network pharmacology analysis revealed that XPF may regulate targets, such as ACE2, HTR1A, HTR2A, AKT1, PKIA, CREB1, BDNF, BCL2, BAX, CASP3, cAMP signaling pathway, and cell apoptosis process in the treatment of CHD with depression. The gene discussed is BDNF; the disease is depressive disorder.