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. Here, NFKB1 is linked to Mental deterioration.