The SETDB1–TRIM28 complex suppresses antitumor immunity in ovarian cancer by downregulating PD-L1 and inhibiting CD8+ T cell infiltration in the tumor microenvironment. Here, CD274 is linked to ovarian cancer.