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 PKIA; the disease is major depressive disorder.