TMP269, a class IIA histone deacetylase inhibitor with selectivity, that has a protective effect on the central nervous system, yet its specific mechanism of action remains ambiguous. Although major depressive disorder (MDD) is highly prevalent, its pathophysiology is poorly understood. Recent evidence suggests that histone deacetylase 5 plays a key role in the pathological process of depression and the fact that preclinical studies have shown HDAC5 to be a potential antidepressant target, the search for natural drugs or small molecule compounds that can target HDAC5 may be a potential therapeutic strategy for the treatment of depression. In addition, we examined the role of the Brain-derived neurotrophic factor (BDNF), an important neurotrophic factor for neuronal survival and growth, as a potential downstream target of HDAC5. We found downward revision of HDAC5 levels in the hippocampus ameliorated depressive-like behavior in LH (Learned helplessness) mice. Furthermore, injection of HDAC5 overexpressing adenoviral vectors in the hippocampal dentate gyrus of wild-type mice produced a somewhat depressive-like phenotype. Pharmacological, immunofluorescence and biochemical experiments showed that TMP269 could produce antidepressant effects by inhibiting mouse hippocampal HDAC5 and thus modulating its downstream BDNF. Over all, TMP269 mitigated LH-induced depressive-like behaviors and abnormalities in synapse formation and neurogenesis within the hippocampus. These findings suggest potential beneficial effects of TMP269 on depression.