Our findings suggest that anesthesia and surgical procedures trigger neuroinflammation and cognitive deficits, which may be due to NLRP3–GABA activation in the hippocampus of aged mice. Here, NLRP3 is linked to Cognitive impairment.