Pharmacological inhibition or genetic ablation of G9a increased Ifnβ and ISG expression in mouse fibroblasts and rendered these cells resistant to viral infection. Here, EHMT2 is linked to viral infectious disease.