med study partner

Articles & Guides › Articles › Immunology

MHC, antigen presentation and HLA associations

How MHC class I and class II differ in structure, where they are found and which T cells read them, how peptides are loaded onto each class, and which HLA types raise the risk of autoimmune disease and severe drug reactions.

Immunology · 6 min read · Reviewed 2026-11-09

T cells cannot recognize a whole protein. They see only short pieces of it, called peptides, held in the groove of a major histocompatibility complex (MHC) molecule on the surface of another cell. In humans, MHC molecules are called human leukocyte antigens (HLA)[1]. The class of MHC that carries a peptide decides which kind of T cell responds. The HLA types a person inherits decide which peptides they present well, and so shape their risk of certain autoimmune diseases and drug reactions.

Key points

  • MHC class I (HLA-A, B and C) is on all nucleated cells, shows peptides made inside the cell and is read by CD8 T cells.
  • MHC class II (HLA-DP, DQ and DR) is on antigen-presenting cells, shows peptides taken in from outside and is read by CD4 T cells.
  • Class I is loaded in the endoplasmic reticulum after the proteasome cuts proteins and TAP pumps the peptides in. Class II is loaded in endosomes after HLA-DM removes the placeholder CLIP.
  • Dendritic cells can cross-present swallowed antigen on class I, which lets them start CD8 responses against viruses and tumors.
  • HLA-B27 goes with ankylosing spondylitis, DR4 with rheumatoid arthritis, and DQ2 and DQ8 with celiac disease. Test for HLA-B∗57:01 before abacavir and for HLA-B∗15:02 before carbamazepine in at-risk groups.

MHC class I and class II

The genes

The MHC genes lie on chromosome 6. They are the most variable genes in the human genome, which is why finding a matched organ donor is hard. Each person inherits one set (a haplotype) from each parent and expresses both[1].

The two classes

FeatureMHC class IMHC class II
GenesHLA-A, HLA-B, HLA-CHLA-DP, HLA-DQ, HLA-DR
StructureOne variable heavy chain plus beta-2-microglobulinTwo variable chains, alpha and beta
Found onAll nucleated cells and platelets; not mature red cellsDendritic cells, macrophages and B cells; other cells when induced by interferon-gamma
Peptides fromInside the cell: normal, viral or tumor proteinsOutside the cell: proteins taken in by endocytosis or phagocytosis
Peptide length8 to 10 amino acids (closed groove)13 to 25 amino acids (open groove)
Read byCD8 cytotoxic T cellsCD4 helper T cells

A quick check: class I times CD8 is 8, and class II times CD4 is 8. The logic matters more than the trick. Any cell can be infected by a virus, so every cell needs a way to show a killer T cell what it is making. Only specialized cells need to show helper T cells what they have collected from their surroundings[2].

Beta-2-microglobulin is part of class I but is encoded on chromosome 15. Its blood level rises in multiple myeloma and kidney failure, and in long-term dialysis it can deposit as amyloid.

When a class is missing

In the bare lymphocyte syndromes, a defect in the transcription factors that switch on class II genes (such as CIITA) leaves antigen-presenting cells without class II. Developing CD4 T cells cannot be selected in the thymus, CD4 counts are very low, and the illness looks like severe combined immunodeficiency. Defects in TAP lower class I and CD8 T cells and cause a milder illness with chronic respiratory infections[3].

Many viruses and tumors lower their class I to escape CD8 T cells. That makes them targets for natural killer cells, which are normally held back by class I.

Antigen processing and presentation

The cytosolic pathway, for class I

  1. Proteins inside the cell are tagged with ubiquitin and cut into peptides by the proteasome.
  2. TAP (transporter associated with antigen processing) pumps the peptides into the endoplasmic reticulum.
  3. New class I molecules, held open by tapasin, load the peptides.
  4. The complex travels to the cell surface, where CD8 T cells inspect it[2].

The endosomal pathway, for class II

  1. The antigen-presenting cell takes in proteins from outside. B cells take them in through their antibody receptor.
  2. Class II molecules made in the endoplasmic reticulum carry the invariant chain, which blocks the groove so the cell's own peptides cannot bind there and steers the molecule to endosomes.
  3. In acidic endosomes the invariant chain is digested, leaving a small piece called CLIP in the groove.
  4. HLA-DM removes CLIP and loads a peptide from the swallowed protein.
  5. The complex moves to the surface, where CD4 T cells inspect it[2].

The two pathways keep their peptides apart: TAP feeds class I in the endoplasmic reticulum, while the invariant chain keeps class II empty until it reaches the endosome.

Cross-presentation

Some viruses never infect dendritic cells, yet strong CD8 responses against them begin in the lymph nodes. Dendritic cells manage this by cross-presentation: they swallow infected or tumor cells and divert some of that material into the class I pathway, which lets them prime naive CD8 T cells[2]. Much of the immune response against tumors depends on it.

Superantigens skip the rules

Toxins such as toxic shock syndrome toxin clamp the outside of class II to the T-cell receptor beta chain without any processing. They switch on a huge fraction of T cells at once and cause a cytokine storm.

HLA associations with disease

Some HLA alleles raise the risk of disease, usually because their groove presents a particular self, microbial, dietary or drug-modified peptide to T cells especially well. Most people with the allele never develop the disease: the association is a risk, not a diagnosis[4].

HLA typeAssociated conditions
B27 (class I)Ankylosing spondylitis, reactive arthritis, psoriatic arthritis, arthritis with inflammatory bowel disease, anterior uveitis
B51Behçet disease
C∗06:02Psoriasis
DR3Type 1 diabetes, Graves disease, lupus, Addison disease
DR4Rheumatoid arthritis, type 1 diabetes
DR2 (DR15)Multiple sclerosis, Goodpasture syndrome, narcolepsy
DR5Pernicious anemia, Hashimoto thyroiditis
DQ2 and DQ8Celiac disease; DQ8 also type 1 diabetes
A3Hereditary hemochromatosis, through the nearby HFE gene

Celiac disease as the model

In celiac disease, the enzyme tissue transglutaminase modifies gluten peptides (gliadin), adding negative charges that make them fit tightly into the grooves of DQ2 and DQ8. CD4 T cells that recognize these peptides drive the damage to the gut. Nearly every patient carries DQ2 or DQ8, so a negative test makes celiac disease very unlikely[3].

Drug reactions you can prevent

Some HLA types bind a drug, or a peptide altered by a drug, and present it to cytotoxic T cells, causing severe and sometimes fatal reactions. Testing before prescribing prevents them.

AlleleDrugReaction
HLA-B∗57:01AbacavirHypersensitivity syndrome with fever, rash, and gastrointestinal and respiratory symptoms[5]
HLA-B∗15:02Carbamazepine and phenytoinStevens-Johnson syndrome and toxic epidermal necrolysis, mainly in people of Southeast and East Asian ancestry[6]
HLA-B∗58:01AllopurinolSevere skin reactions[7]

Screening for HLA-B∗57:01 before abacavir has almost eliminated immunologically confirmed hypersensitivity to the drug[5].

Common confusions

  • B27 versus DR4: spine and sacroiliac joints point to B27 (class I); symmetric small-joint arthritis points to DR4 (class II).
  • TAP versus the invariant chain: TAP loads class I in the endoplasmic reticulum; the invariant chain keeps class II empty until it reaches the endosome.
  • Beta-2-microglobulin versus the class II beta chain: beta-2-microglobulin is the unchanging partner of class I; the class II beta chain is a variable chain encoded in the MHC.
  • An HLA association is not a diagnosis: most people who carry B27 or DR4 never develop disease.

References

  1. Klein J, Sato A. The HLA system. First of two parts. N Engl J Med. 2000;343(10):702-709. doi:10.1056/NEJM200009073431006 Link ↩
  2. Neefjes J, Jongsma MLM, Paul P, Bakke O. Towards a systems understanding of MHC class I and MHC class II antigen presentation. Nat Rev Immunol. 2011;11(12):823-836. doi:10.1038/nri3084 Link ↩
  3. Abbas AK, Lichtman AH, Pillai S. Cellular and Molecular Immunology. 10th ed. Elsevier; 2022. ↩
  4. Klein J, Sato A. The HLA system. Second of two parts. N Engl J Med. 2000;343(11):782-786. doi:10.1056/NEJM200009143431106 Link ↩
  5. Mallal S, Phillips E, Carosi G, et al. HLA-B*5701 screening for hypersensitivity to abacavir. N Engl J Med. 2008;358(6):568-579. doi:10.1056/NEJMoa0706135 Link ↩
  6. Chung WH, Hung SI, Hong HS, et al. A marker for Stevens–Johnson syndrome. Nature. 2004;428(6982):486. doi:10.1038/428486a Link ↩
  7. Hung SI, Chung WH, Liou LB, et al. HLA-B*5801 allele as a genetic marker for severe cutaneous adverse reactions caused by allopurinol. Proc Natl Acad Sci U S A. 2005;102(11):4134-4139. doi:10.1073/pnas.0409500102 Link ↩

Test yourself in the Question Bank · Listen to the podcasts