In this study, we found that PHF8 loss in tumor cells removes an epigenetic checkpoint that restrains antiviral immune responses, endogenous nucleic acid sensing and tumor inflammation, leading to an effective immune response against cancer cells. Here, PHF8 is linked to cancer.