Complete loss of MHC class I expression caused by β2M deficiency contributes to immune selection and expansion of melanomas with such genetic defects, while also contributing to immune escape and leading to resistance to T cell-based immunotherapy. This evidence concerns the gene B2M and melanoma.