In the brains of patients with Alzheimer's disease (AD) and transgenic AD mouse models, astrocytes and microglia activated by amyloid-β (Aβ) contribute to the inflammatory process that develops around injury in the brain. Valproic acid (VPA) has been shown to have anti-inflammatory function. The present study intended to explore the therapeutic effect of VPA on the neuropathology and memory deficits in APPswe/PS1ΔE9 (APP/PS1) transgenic mice. Here, we report that VPA-treated APP/PS1 mice markedly improved memory deficits and decreased Aβ deposition compared with the vehicle-treated APP/PS1 mice. Moreover, the extensive astrogliosis and microgliosis as well as the increased expression in interleukin-1β (IL-1β) and tumor necrosis factor-α (TNF-α) in the hippocampus and cortex of APP/PS1 transgenic mice were significantly reduced following administration of VPA, which attenuated neuronal degeneration. Concomitantly, VPA alleviated the levels of p65 NF-κB phosphorylation and enhanced the levels of acetyl-H3, Bcl-2, and phospho-glycogen synthase kinase (GSK)-3β that occurred in the hippocampus of APP/PS1 transgenic mice. These results demonstrate that VPA could significantly ameliorate spatial memory impairment and Aβ deposition at least in part via the inhibition of inflammation, suggesting that administration of VPA could provide a therapeutic approach for AD.