In our study, the histamine 2/3 receptor agonists inhibited exploratory laparotomy- or LPS-induced cognitive decline, microglia activation, proinflammatory cytokine production, NF-κb expression, M1/M2 phenotype transformation, cell migration, and TLR4 expression through the PI3K/AKT/FoxO1 pathway. The gene discussed is FOXO1; the disease is Mental deterioration.