ObjectivePancreatic ductal adenocarcinoma (PDAC) stands as one of the most lethal cancers, marked by its lethality and limited treatment options, including the utilisation of checkpoint blockade (ICB) immunotherapy. Epigenetic dysregulation is a defining feature of tumourigenesis that is implicated in immune surveillance, but remains elusive in PDAC.DesignTo identify the factors that modulate immune surveillance, we employedin vivoepigenetic-focused CRISPR-Cas9 screen in mouse PDAC tumour models engrafted in either immunocompetent or immunodeficient mice.ResultsHere, we identified MED12 as a top hit, emerging as a potent negative modulator of immune tumour microenviroment (TME) in PDAC. Loss ofMed12significantly promoted infiltration and cytotoxicity of immune cells including CD8+T cells, natural killer (NK) and NK1.1+T cells in tumours, thereby heightening the sensitivity of ICB treatment in a mouse model of PDAC. Mechanistically, MED12 stabilised heterochromatin protein HP1A to repress H3K9me3-marked endogenous retroelements. The derepression of retrotransposons induced byMED12loss triggered cytosolic nucleic acid sensing and subsequent activation of type I interferon pathways, ultimately leading to robust inflamed TME . Moreover, we uncovered a negative correlation between MED12 expression and immune resposne pathways, retrotransposon levels as well as the prognosis of patients with PDAC undergoing ICB therapy.ConclusionIn summary, our findings underscore the pivotal role of MED12 in remodelling immnue TME through the epigenetic silencing of retrotransposons, offering a potential therapeutic target for enhancing tumour immunogenicity and overcoming immunotherapy resistance in PDAC.