The major histocompatibility complex (MHC) plays a key role in the immune system by presenting antigens to T cells. MHC molecules are classified into three classes - Class I molecules present antigens to CD8+ T cells within cells, Class II present antigens to CD4+ T cells on antigen presenting cells, and Class III genes encode complement proteins. MHC molecules are highly polymorphic and expressed in different patterns on various cell types, regulated by cytokines. Certain MHC alleles are associated with susceptibility to certain diseases.