This study aimed to investigate the impact of caloric restriction (CR) on cognitive function in aged C57BL/6 mice after surgery, as well as the underlying mechanisms. Forty 14-month-old male C57BL/6 mice were randomly assigned to the ad libitum (AL, n = 20) group and the CR (n = 20) group. After feeding for 12 weeks, they were subdivided into four groups: AL control (ALC, n = 10), AL with surgery (ALS, n = 10), CR control (CRC, n = 10), and CR with surgery (CRS, n = 10). The Morris Water Maze (MWM) test was used to assess learning and memory capacity. By using western blot and immunofluorescence, the expression of Sirt1, MeCP2, and BDNF in the hippocampus and hippocampal CA1 region was quantified. According to the behavioral test, the CRC and CRS groups had significantly better learning and memory abilities than the ALC and ALS groups, respectively. Sirt1, MeCP2, and BDNF expression in the hippocampus and CA1 region in the hippocampus of the ALC and CRC groups of mice were correlated with cognitive improvement. In conclusion, CR could enhance the postoperative cognitive function in aged mice, most likely by increasing the expression of Sirt1, MeCP2, and BDNF in the CA1 region of the hippocampus.