Accumulating evidence indicates that microglia-mediated neuroinflammation in the hippocampus contributes to the development of perioperative neurocognitive disorder (PND). P38MAPK, a point of convergence for different signaling processes involved in inflammation, can be activated by various stresses. This study aims to investigate the role of the P38MAPK/ATF2 signaling pathway in the development of PND in mice. Aged C57BL/6 mice were subjected to tibial fracture surgery under isoflurane anesthesia to establish a PND animal model. The open field test was used to evaluate the locomotor activity of the mice. Neurocognitive function was assessed with the Morris water maze (MWM) and fear conditioning test (FCT) on postoperative days 1, 3 and 7. The mice exhibited cognitive impairment accompanied by increased expression of proinflammatory factors (IL-1β, TNF-α), proapoptotic molecules (caspase-3, bax) and microglial activation in the hippocampus 1, 3 and 7 days after surgery. Treatment with SB239063 (a P38MAPK inhibitor) decreased the expression of proinflammatory factors, proapoptotic molecules and Iba-1 in the CA1 region of the hippocampus. The number of surviving neurons was significantly increased. Inhibition of the P38MAPK/ATF2 signaling pathway attenuates hippocampal neuroinflammation and neuronal apoptosis in aged mice with PND, thus improving the perioperative cognitive function of the mice.