In summary, our findings consistently demonstrated that microglial activation increased HDAC2 expression leading to Bdnf and c-fos transcription repression in hippocampal glutamatergic neurons, which resulted in memory impairment. Here, BDNF is linked to memory impairment.