Diabetic encephalopathy is a chronic complication of diabetes that lacks an optimized treatment strategy. The present study sought to elucidate the potential molecular mechanism of Qi Fu Yin in improving diabetic encephalopathy through network pharmacology. The active components and target information of Qi Fu Yin were obtained from the TCMSP and Swiss target databases, while the target information of diabetic encephalopathy was sourced from Gene cards, OMIM, and Pharm Gkb databases. Enrichment analyses of KEGG and GO were conducted utilizing drug-disease common targets, while protein-protein interactions were predicted through the utilization of the STRING database platform. Subsequently, molecular docking was executed via Auto Dock Vina to authenticate the interaction between core components and core targets. The findings revealed that Qi Fu Yin exhibited 178 common targets with diabetic encephalopathy, and the enrichment analyses demonstrated that these targets were associated with lipid and atherosclerosis, AGE-RAGE signaling pathways, and other related pathways. The findings of the molecular docking indicated a favorable binding affinity between the active components of drug and the core targets, with EGF and quercetin exhibiting the most notable docking score. Additionally, the molecular dynamics simulation corroborated this high affinity. These results suggested that the active ingredients of Qi Fu Yin, including quercetin and kaempferol, may modulated the expression of genes such as IL10, TNF, EGF, and MMP2, thereby activating the AGE-RAGE signaling pathways and potentially serving as a therapeutic intervention for diabetic encephalopathy.Communicated by Ramaswamy H. Sarma.