Cinnamomum cassia Presl (CCP) has a beneficial impact on diabetes and dementia. In this research, the underlying mechanism of flavonoids of Cinnamomum cassia Presl (CFS) on diabetes-related cognitive impairment (DRCI) were inferred by a network pharmacology approach. The conjectures of network study were verified through the advanced glycation end products (AGEs) systems in vitro and the long-term diabetic rats. The experimental results showed CFS inhibited AGEs generated from nonenzymatic glycosylation reaction in vitro as well as in the brain of long-term diabetic rats in a dose-dependently manner. In morris water maze study, CFS restored the cognitive ability of diabetic rats. Moreover, the hippocampal morphology damage and oxidative stress were ameliorated by CFS, while the hippocampal level of AGEs, RAGE and pJNK/JNK were decreased significantly. These results indicated CFS may suppress AGEs accumulation via inhibiting glycosylation, and alleviating oxidative stress caused by AGEs, thereby prevents the neuronal injury and ameliorates DRCI.