Teneligliptin alleviates diabetes-related cognitive impairment by inhibiting the endoplasmic reticulum (ER) stress and NLRP3 inflammasome in mice. Here, NLRP3 is linked to diabetes mellitus.