X-linked immunodeficiency with magnesium defect, Epstein-Barr virus infection, and neoplasia (XMEN) is a rare primary immunodeficiency caused by MAGT1 mutations. Here, MAGT1 is linked to Epstein-Barr virus infection.