What Are MHC Genes? Roles in Immunity and Disease

MHC genes (major histocompatibility complex genes) are a group of genes that help your immune system distinguish your own cells from foreign invaders like viruses and bacteria. In humans, these genes are called HLA genes (human leukocyte antigens), and they sit on the short arm of chromosome 6. They are among the most genetically diverse genes in the human body: as of December 2025, scientists have identified 43,758 different HLA alleles across the population. This extraordinary variety is central to how your immune system works, and it plays a major role in organ transplantation, autoimmune diseases, and your vulnerability to infections.

How MHC Genes Help Your Immune System

Your immune system’s T cells can’t detect threats on their own. They need MHC molecules to act as a display system. Every cell in your body uses MHC proteins to grab small fragments of the proteins inside or around it and present those fragments on the cell surface. T cells constantly scan these displays. When they spot a fragment that looks foreign, like a piece of a virus, they launch an immune response.

This process has a key constraint: a T cell must recognize both the foreign fragment and the MHC molecule presenting it at the same time. This is called MHC restriction, a phenomenon first described by Zinkernagel and Doherty in 1974. If either piece of the puzzle is missing, the T cell won’t activate. It’s a built-in safety check that helps prevent your immune system from attacking your own healthy tissue.

The Three Classes of MHC Genes

Class I: Protecting Against Internal Threats

Class I MHC genes produce proteins found on nearly every cell in your body that has a nucleus (red blood cells, which lack nuclei, are an exception). The three main Class I genes in humans are HLA-A, HLA-B, and HLA-C. Their job is to display fragments of proteins made inside the cell. When a virus infects a cell and hijacks its machinery to make viral proteins, Class I molecules grab pieces of those viral proteins and show them on the cell surface. Killer T cells (CD8+ T cells) patrol for exactly this kind of signal. When they find it, they destroy the infected cell before the virus can spread.

Class I molecules also display fragments of normal cellular proteins, old proteins being recycled, and even defective proteins from the cell’s own manufacturing process. This constant sampling lets the immune system monitor what’s happening inside cells in real time. Several additional “non-classical” Class I genes (HLA-E, HLA-G, and others) exist with more specialized roles, but HLA-A, HLA-B, and HLA-C do the heavy lifting.

Class II: Handling External Threats

Class II MHC genes work differently. Their proteins appear only on specialized immune cells, including the cells that patrol your body looking for bacteria, parasites, and other invaders that come from outside your cells. The main Class II genes in humans are HLA-DR, HLA-DQ, and HLA-DP. When an immune cell engulfs a bacterium and breaks it down, Class II molecules display fragments of that bacterium on the cell surface. Helper T cells (CD4+ T cells) recognize these displays and coordinate a broader immune response, activating other immune cells and stimulating antibody production.

The division of labor is clean: Class I handles threats from inside cells (mainly viruses), while Class II handles threats from outside cells (mainly bacteria and parasites). Different types of T cells respond to each.

Class III: Supporting the Immune Response

Class III MHC genes don’t present antigens at all. Instead, they encode proteins that support the immune system in other ways. These include complement components (C2, C4, and factor B), which are blood proteins that help destroy pathogens directly, and signaling molecules like tumor necrosis factor-alpha, which coordinates inflammation. Class III genes sit between the Class I and Class II regions on chromosome 6 and play important supporting roles, even though they work through completely different mechanisms.

Why MHC Genes Are So Diverse

MHC genes are the most polymorphic genes in the human genome, meaning they exist in more variants across the population than almost any other gene. To put this in perspective, HLA-B alone has 10,876 known alleles. HLA-A has 9,022. This isn’t random. It’s the result of millions of years of evolutionary pressure from infectious diseases.

Three main theories explain why this diversity persists. The heterozygote advantage hypothesis suggests that people who inherit two different versions of an MHC gene (one from each parent) can present a wider range of pathogen fragments than people who inherit two copies of the same version, giving them broader protection. The rare-allele advantage hypothesis proposes that pathogens evolve to evade the most common MHC types in a population, so individuals carrying unusual alleles have a built-in edge. And the fluctuating selection hypothesis points out that different pathogens dominate in different places and times, so no single MHC type is best everywhere. All three mechanisms likely work together to maintain the remarkable diversity we see today.

How MHC Genes Are Inherited

You inherit one set of MHC genes from each parent. Because MHC genes are clustered tightly together on chromosome 6, the entire block tends to be passed down as a unit called a haplotype. Both copies are active simultaneously, a pattern called codominant expression. This means your cells display MHC molecules from both your mother’s and your father’s gene sets, effectively doubling the range of pathogen fragments your immune system can detect.

Because siblings inherit their MHC genes as haplotypes, there’s a one-in-four chance that any two siblings share identical MHC genes. This probability is important in organ transplantation, where MHC matching between donor and recipient dramatically affects outcomes.

MHC Genes and Organ Transplantation

The MHC was originally named for its role in transplant rejection. When you receive an organ from another person, your T cells inspect the MHC molecules on the donor’s cells. If those molecules look different from your own, your immune system treats the organ as a foreign invader and attacks it. Differences at MHC genes are the single most potent trigger of graft rejection.

Matching HLA types between donor and recipient significantly improves transplant success rates, but it doesn’t guarantee acceptance. Even HLA-identical siblings (who share the same MHC genes) will reject each other’s organs without immunosuppressive medication, because genetic differences at other, non-MHC loci still provoke immune responses. Before transplantation, doctors also check whether the recipient already has antibodies against the donor’s white blood cells. If such antibodies are present, transplantation is essentially ruled out because the organ would be rejected almost immediately.

Perfect MHC matching between unrelated individuals is extremely difficult given the sheer number of alleles in the population. Two unrelated people who appear to match using standard testing methods rarely have truly identical MHC genotypes.

Links to Autoimmune Disease

Because MHC molecules determine which protein fragments get shown to T cells, certain MHC variants can increase the risk of autoimmune diseases, conditions where the immune system mistakenly attacks the body’s own tissues. Some of the strongest genetic associations in all of medicine involve HLA alleles.

The most dramatic example is ankylosing spondylitis, an inflammatory condition affecting the spine. Specific variants of HLA-B27 (particularly B*2701, B*2704, and B*2705) strongly predispose people to the disease, while other subtypes of the same gene (B*2706 and B*2709) are actually protective. In type 1 diabetes, Class II alleles HLA-DR3 and HLA-DR4 are major risk factors, and certain Class I alleles like HLA-B*39 and HLA-A*24 contribute additional risk. Rheumatoid arthritis is linked to a set of HLA-DRB1 alleles that share a specific structural feature called the “shared epitope.” Multiple sclerosis and Graves’ disease also show strong HLA associations.

Having a predisposing allele doesn’t mean you’ll develop the disease. These alleles increase risk, sometimes substantially, but autoimmune conditions typically require additional genetic and environmental triggers to develop. Still, HLA typing can be a useful tool for assessing susceptibility, especially when combined with family history and other risk factors.