Early life exposure to ketamine caused neurohistopathologic changes and persistent cognitive dysfunction. For this study, a pregnant rat model was developed to investigate neurocognitive effects in the offspring, following ketamine exposure during the second trimester. Pregnant rats on gestational day 14 (equal to midtrimester pregnancy in humans), intravenously received 200 mg/kg ketamine for 3 h. Their behavior was tested (Morris water maze, odor recognition test, and fear conditioning) at postnatal days (P25–30). Furthermore, hippocampal morphology of the offspring (P30) was examined via Nissl staining and hippocampal dendritic spine density was determined via Golgi staining. The hippocampal protein levels of nerve growth factor (NGF), extracellular signal-regulated kinase (ERK), phosphorylated-ERK (p-ERK), cyclic adenosine monophosphate response element-binding (CREB), p-CREB, synaptophysin (SYP), synapsin (SYN), and postsynaptic density-95 (PSD95) were measured via western blot. Additionally, SCH772984 (an ERK inhibitor) was used to evaluate both role and underlying mechanism of the ERK pathway in PC12 cells. We found that ketamine caused long-term neurocognitive dysfunction, reduced the density of the dendritic spin, caused neuronal loss, and down-regulated the expression of NGF, ERK, p-ERK, mitogen, and stress-activated protein kinase (MSK), CREB, p-CREB, SYP, SYN, and PSD95 in the hippocampus. These results suggest that ketamine induced maternal anesthesia during period of the fetal brain development can cause long-term neurocognitive dysfunction in the offspring, which likely happens via inhibition of the NGF-ERK-CREB pathway in the hippocampus. Our results highlight the central role of ERK in neurocognition.