Melatonin participates in plant growth and development and biotic and abiotic stress responses. Histone acetylation regulates many plant biological processes via transcriptional reprogramming. However, the direct relationship between melatonin and histone acetylation in plant disease resistance remains unclear. In this study, we identified cassava bacterial blight (CBB) responsive histone deacetylase 9 (HDA9), which negatively regulated disease resistance to CBB by reducing melatonin content. In addition, exogenous melatonin alleviated disease sensitivity of MeHDA9 overexpressed plants to CBB. Importantly, MeHDA9 inhibited the expression of melatonin biosynthetic genes through decreasing lysine 5 of histone 4 (H4K5) acetylation at the promoter regions of melatonin biosynthetic genes, thereby modulating melatonin accumulation in cassava. Furthermore, protein phosphatase 2C 12 (MePP2C12) interacted with MeHDA9 in vivo and in vitro, and it was involved in MeHDA9‐mediated disease resistance via melatonin biosynthetic pathway. In summary, this study highlights the direct interaction between histone deacetylation and melatonin biosynthetic genes in cassava disease resistance via histone deacetylation, providing new insights into the genetic improvement of disease resistance via epigenetic regulation of melatonin level in tropical crops.