Major Histocompatibility Complexes (MHC) are a group of genes that encode cell surface proteins responsible for the recognition of self and non-self molecules, playing a crucial role in the immune system's ability to distinguish between the body's own cells and foreign invaders.