Major histocompatibility complex class II (MHCII) deficiency is a primary immunodeficiency resulting from defects in one of four different MHCII-specific transcription factors-CIITA, RFX5, RFXAP, and RFXANK. Despite this genetic heterogeneity, the phenotypical manifestations are homogeneous. It is frequently difficult to establish a definitive diagnosis of the disease on the basis of clinical and immunological criteria. Moreover, the phenotypical homogeneity precludes unambiguous identification of the regulatory gene that is affected. Identification of the four genes mutated in the disease has now allowed us to develop a rapid and straightforward diagnostic test for new MHCII-deficiency patients. This test is based on direct correction of the genetic defect by transduction of cells from patients with lentiviral vectors encoding CIITA, RFXANK, RFX5, or RFXAP. We have validated this approach by defining the molecular defects in two new patients. The RFXANK vector restored MHCII expression in a T cell line from one patient. The RFXAP vector corrected primary cells (PBL) from a second patient. Molecular analysis confirmed the presence of homozygous mutations in the RFXANK and RFXAP genes, respectively. Direct genetic correction represents a valuable tool for the diagnosis and classification of new MHCII-deficiency patients.