β2 microglobulin (B2M) is a component of MHC class I molecules. MHC class I molecules have α1, α2, and α3 proteins which are present on all nucleated cells (excluding red blood cells). In humans, the β2 microglobulin protein is encoded by the B2M gene.