Herein we report the design, synthesis and extensive biological evaluation of a class of small molecules targeting the enzymes histone deacetylases (HDACs) and histone methyltransferases(G9a), both are key posttranslational enzymes in cancer development. The gene discussed is EHMT2; the disease is cancer.