Stat3-mediated Th17 pathogenicity induced by periodontitis contributes to cognitive impairment by promoting microglial M1 polarization. Here, STAT3 is linked to periodontitis.