Dex partly through inhibiting microglia transformation to the M1 polarization state and inactivating the TLR4/NF-kB pathway attenuates the cognitive disorders in mice. Here, TLR4 is linked to Cognitive impairment.