ATF7IP2 (MCAF2) is a SETDB1-binding cofactor that targets H3K9me3 deposition to heterochromatin and repetitive loci, with a specialized role in male meiotic chromatin organization (PMID:37542719, PMID:38383062). It assembles with the histone methyltransferase SETDB1 through coiled-coil interactions, forming a hetero-trimeric complex (one SETDB1 to two ATF7IP2) that engages the SETDB1 nuclear export signals and directly competes with the export receptor CRM1, with mixed SETDB1–ATF7IP–ATF7IP2 heterotrimers providing compositional control over SETDB1 localization and activity (PMID:40339988). During male meiosis, the DNA damage response pathway recruits ATF7IP2 to X-pericentric heterochromatin, where it facilitates SETDB1-catalyzed H3K9me3; ATF7IP2 also spreads across the sex chromosomes and accumulates on thousands of autosomal promoters and retrotransposon loci (PMID:38383062). Through this activity it enforces meiotic sex chromosome inactivation, suppresses retrotransposons, restrains autosomal gene expression, and constrains chromosome axis length and crossover formation, such that its loss causes meiotic prophase I arrest and male infertility (PMID:37542719, PMID:38383062). In somatic cells it engages MBD1 and Sp1 and is functionally redundant with MCAF1 in MBD1-mediated transcriptional repression (PMID:15691849).