The transcription factors RFX and CIITA are major players in regulation of the expression of all classical and nonclassical major histocompatibility complex class II (MHC-II) genes. RFX nucleates the formation of a multiprotein complex, called the MHC-II enhanceosome, on MHC-II promoters. Assembly of this enhanceosome is an obligatory step for recruitment of the coactivator CIITA and thus for activation of MHC-II gene transcription. We have analyzed the function of the ankyrin repeat-containing protein RFXANK, which forms the heterotrimeric RFX complex together with RFX5 and RFXAP. We discovered that ANKRA2, the closest paralogue of RFXANK, can substitute for RFXANK in the activation of MHC-II genes and that this ability is mediated by its ankyrin repeat domain (ARD). This finding provided the basis for a high-resolution structurefunction analysis of the ARD of RFXANK, which allowed us to map the RFX5 interaction domain and residues critical for assembly of the RFX complex. We also found that mutations in the fourth ankyrin repeat of RFXANK abolish assembly of the enhanceosome on MHC-II promoters in vivo but not in vitro, suggesting a new role of RFXANK in facilitating promoter occupation in the context of chromatin.