The underlying mechanism for the beneficial effect of valproic acid on glucose homeostasis and T2D is related to the modulation of HDAC, insulin signaling, glucagon secretion, and expression of FOXO1.107. The gene discussed is HDAC9; the disease is type 2 diabetes mellitus.