The present study indicates for the first time that the infiltration of Th22 cells into the hippocampus in a DM model results in cognitive dysfunction and the secretion of the inflammatory cytokine IL-22 to promote the inflammatory response. Here, IL22 is linked to diabetes mellitus.