The present study demonstrates that maternal nonobstetric surgery during mid-pregnancy exacerbates hippocampus-dependent spatial learning and memory impairment in offspring rats caused by propofol anesthesia, which is associated with increased expression of HDAC2 and decreased levels of synapse-associated proteins p-CREB, and BDNF-TrkB. Here, HDAC2 is linked to memory impairment.