I have everything I need for a detailed, clear, well-sourced answer. Let me now write it up.
What Does HLA-B27 Actually Do in AS?
This is one of the most studied questions in rheumatology - and after 40+ years of research, the answer is still "we think we understand it, but the exact mechanism isn't fully settled." Here is what is known, clearly laid out.
First: What is HLA-B27 normally?
HLA-B27 is an MHC Class I molecule - a protein that sits on the surface of virtually every nucleated cell in the body. Its normal job is to:
- Pick up small peptide fragments (8-10 amino acids) from inside the cell - from proteins being made, degraded, or from invading viruses/bacteria
- Present those peptides on the cell surface to CD8+ cytotoxic T lymphocytes
- If the peptide is "foreign" (viral, bacterial, or tumour-derived), the CD8+ T cell kills the cell
- If the peptide is "self," the T cell ignores it (tolerance)
HLA-B27 is just one of over 200 variants at the HLA-B locus, but it has some unusual structural properties that set it apart from all other HLA molecules.
The Key Abnormalities of HLA-B27
1. It Folds Very Slowly in the Endoplasmic Reticulum (ER)
HLA-B27 assembles in the ER by joining three components:
- The heavy chain (HLA-B27 protein itself)
- β2-microglobulin (a support protein)
- A peptide fragment
HLA-B27 assembles more slowly than any other HLA molecule. This slow folding means that misfolded or partially assembled B27 accumulates inside the ER.
2. This Triggers the Unfolded Protein Response (UPR) - Hypothesis 1
When misfolded proteins pile up in the ER, the cell activates an emergency stress response called the Unfolded Protein Response (UPR):
HLA-B27 misfolds in ER
↓
ER stress accumulates
↓
UPR activated (via XBP-1, ATF-6 pathways)
↓
NF-κB signalling turned on
↓
Macrophages release IL-23
↓
IL-23 drives Th17 cells
↓
Th17 cells release IL-17A
↓
Chronic inflammation at entheses + sacroiliac joints
Roitt's Essential Immunology puts it simply: "The tendency of HLA-B27 molecules to misfold in the endoplasmic reticulum, and subsequently dimerize, leads to an unfolded protein stress response resulting in excessive production of IL-23 by Th17 cells following pattern recognition receptor activation."
Caveats: Evidence for UPR is strongest in HLA-B27 transgenic rats. Studies in human AS synovium have also found UPR signals, but studies of circulating cells in humans have been less consistent - so its relative importance in humans remains debated.
3. After Leaving the ER, B27 Forms Dangerous Homodimers - Hypothesis 2
Once assembled complexes reach the cell surface, the β2-microglobulin can fall off, leaving a free HLA-B27 heavy chain. These free heavy chains then pair up with another free heavy chain to form B27 homodimers.
These homodimers are abnormal - normal HLA molecules don't do this.
B27 at cell surface
↓
β2-microglobulin dissociates
↓
Free heavy chain
↓
Heavy chain homodimers form on surface
↓
Recognized by KIR3DL2 receptors on CD4+ T cells and NK cells
↓
IL-17 secretion → joint/entheseal inflammation
Caveats: The ability of B27 subtypes to form homodimers has been shown not to correlate with their disease association, which weakens this theory as the primary mechanism (Firestein & Kelley's Rheumatology).
4. It Presents Arthritogenic Peptides - Hypothesis 3 (Currently Best Supported)
This is the "classical" MHC Class I explanation and has recently gained the most support from modern sequencing studies:
- HLA-B27 presents peptides to CD8+ T cells
- In susceptible individuals, B27 presents self-peptides (or microbial peptides that look like self) that trigger CD8+ T cell autoreactivity - called molecular mimicry
- These autoreactive T cells then attack joint/entheseal tissue
The strongest evidence comes from T-cell receptor (TCR) sequencing:
- Multiple studies have found expansion of CD8+ T cell clones with a characteristic CDR3 motif in AS patients
- This motif was found in 37 of 37 AS patients vs. only 4 of 19 HLA-B27-positive healthy controls in one landmark study
- It appears in both European and East Asian AS patients - suggesting a common antigenic driver
- The same motif appears in patients with bacterial-triggered reactive arthritis - linking gut microbes as the original trigger
This is why some B27 subtypes (B*2705, B*2704) cause disease and others (B*2706, B*2709) do not - they differ by just one amino acid in their peptide-binding groove, which changes which peptides they can present.
Why Does HLA-B27 Matter vs. "Normal" HLA?
| Feature | Normal HLA-B (e.g., B7, B35) | HLA-B27 |
|---|
| Folding speed in ER | Fast, efficient | Slow - highest of all HLA molecules |
| ER misfolding tendency | Low | High |
| β2m stability at surface | Stable complex | β2m dissociates more easily |
| Homodimer formation | Rare | Common |
| Peptide binding groove | Normal peptide repertoire | Presents unique "arthritogenic" peptides |
| UPR activation | Minimal | Can trigger ER stress response |
| CD8+ T cell clonal expansion | Normal | Specific CDR3 motif expansion in AS |
| Disease link | None or unrelated diseases | AS, reactive arthritis, uveitis, psoriatic arthritis |
Why Does it NOT Cause Disease in Everyone?
Only ~5% of HLA-B27-positive people develop AS. Additional factors are needed:
- ERAP1 gene variants (second biggest risk factor) - ERAP1 trims peptides before B27 loads them; certain variants change the peptide repertoire B27 presents, worsening autoreactivity. Importantly, ERAP1 variants only increase AS risk in HLA-B27+ people - a direct gene-gene interaction
- IL-23R variants - alter the strength of the Th17 response downstream
- Gut microbiome dysbiosis - germ-free B27 transgenic rats do NOT develop SpA; exposure to gut bacteria is required. HLA-B27 itself alters the gut microbiome, and dysbiosis precedes clinical disease
- Mechanical stress - entheses under high mechanical strain (lower limbs, SI joints) are more susceptible. B27-positive individuals may have an exaggerated immune response to mechanical micro-damage
- Barrier integrity - translocation of bacterial peptides across a leaky gut mucosa provides the initial antigenic trigger that B27 then "mishandles"
The Net Result: What HLA-B27 Does to the Joint
All three mechanisms converge on the same downstream pathway:
HLA-B27 (slow folding + abnormal peptide presentation)
↓
ER stress / UPR → IL-23 from macrophages
Arthritogenic peptide → CD8+ T cell activation
Homodimers → IL-17 from NK/CD4+ cells
↓
IL-23 / IL-17 axis activated
↓
Innate immune inflammation at ENTHESIS
(not the synovium - that's RA's territory)
↓
Neutrophils + macrophages + hypervascularity
↓
Osteitis of SI joint → erosion → new bone (syndesmophyte)
↓
Progressive ankylosis (bamboo spine)
The inflammatory milieu in AS is dominated by innate immunity (neutrophils, macrophages, NK cells), unlike RA which is adaptive (T/B cell lymphoid aggregates). This is directly attributable to how HLA-B27's unusual biology activates these innate pathways.
Sources:
- Firestein & Kelley's Textbook of Rheumatology, HLA-B27 section, pp. 1602+
- Harrison's Principles of Internal Medicine 22E (2025), Chapter 374, pp. 2925+
- Roitt's Essential Immunology - Spondyloarthritis chapter
- Goldman-Cecil Medicine, Chapter 244 - Spondyloarthritis