XIAP is an endogenous inhibitor of cell death and inactivating mutations of XIAP are responsible for X-linked lymphoproliferative disease (XLP-2) and primary immunodeficiency, but the mechanism(s) behind these contradictory outcomes have been unclear. This evidence concerns the gene XIAP and inborn error of immunity.