Collectively, these findings indicate that Th22 cells promote changes in the reactivity of microglia by secreting IL-22 in DM model mice, which participates in and accelerates the progression of cognitive dysfunction in diabetic encephalopathy. This evidence concerns the gene IL22 and diabetes mellitus.