Welcome back. In our last lesson, we examined the distinct molecular architectures of MHC class I and class II molecules, establishing that while both present peptides, their protein assemblies are fundamentally different. We concluded by highlighting the most critical structural distinction: the "closed" peptide-binding groove of class I versus the "open" groove of class II.
This lesson delves into the direct functional consequences of that structural difference. We will explore precisely how the shape of the binding groove dictates the length and characteristics of the peptides each MHC class can bind and display. This relationship is not just a structural detail; it is the physical basis for how the immune system differentiates between threats and is the foundational knowledge required for computationally predicting which parts of a therapeutic protein, like Cas9, might be immunogenic.
MHC Class I: A Pocket with Precise Constraints
Let's begin with the MHC class I molecule. As we saw, its peptide-binding groove is formed by the α1 and α2 domains of a single heavy chain. The key feature is that this groove is effectively sealed at both ends by conserved amino acid residues.
This "closed" architecture imposes a strict length constraint on the peptides it can bind. The groove acts like a precise pocket that can only accommodate peptides of a relatively uniform length, typically 8 to 10 amino acids.

For a peptide to bind stably, it must fit snugly within this pocket. This binding is primarily achieved through two mechanisms:
- Backbone Interactions: A set of conserved hydrogen bonds forms between the MHC molecule and the peptide's backbone atoms at its N- and C-termini. This secures the peptide at both ends.
- Anchor Residues: Specific pockets within the groove accommodate the side chains (R-groups) of particular amino acids in the peptide. These are called anchor residues.
A scientific review in Frontiers in Immunology provides an excellent, detailed description of this process.
Major Histocompatibility Complex (MHC) Class I and ... - PMC - NIH
This article explains how peptides are accommodated in the binding grooves of both MHC classes, with a focus on anchor residues.
Please read the first two paragraphs of the article, starting from the initial description. Pay close attention to how it defines the role of anchor residues and contrasts the binding mechanisms of MHC class I and class II. Note the typical length of peptides for each class mentioned in the second paragraph.
As the reading describes, for MHC class I, the anchor residues are typically at position 2 (P2) and the C-terminal position (PΩ, where Ω is usually 8, 9, or 10). The C-terminus docks into a particularly important pocket known as the 'F-pocket'. The specific amino acids that an HLA allele prefers at these anchor positions determine its binding motif.
While the 8-10 amino acid rule is standard, the system has some flexibility. Peptides slightly longer than the canonical length can sometimes bind by bulging out in the middle, creating a kink that allows the ends to still anchor in the groove. This is an important detail for researchers, as it shows that while the rules are strong, biological systems often have exceptions.
The following video provides a clear animated summary of these structural points.
MHC Class I and Class II Structure, Function and Difference (Major Histocompatibility Complex)
This video from BioMagica visualizes the MHC class I structure and summarizes the peptide binding characteristics.
Watch the segment describing the MHC class I structure, which clearly points out the closed cleft and the 8-10 amino acid capacity. Then, watch the brief summary segment that reinforces these points.
MHC Class II: An Open Groove for Variable Peptides
In stark contrast, the MHC class II groove, formed by the α1 and β1 domains from two different chains, is open at both ends. This seemingly small difference has profound functional implications.
Because the ends are open, the groove does not impose a strict length limit. Instead, it binds longer peptides, typically 13 to 25 amino acids in length. The ends of these peptides are free to extend out beyond the groove itself, as depicted in part B of the "MHC Class I and Class II Structures" image above.
How does a variable-length peptide bind stably? The key is the concept of a peptide binding core. Although the entire peptide is long, a central segment of about 9 amino acids is what actually sits within the binding groove. This 9-mer core maintains a relatively constant, extended conformation (a polyproline type II helix). The amino acids on either side of this core are known as peptide flanking regions (PFRs).
The anchor residues for MHC class II are therefore distributed along this 9-mer core, typically at positions P1, P4, P6, and P9. These anchors secure the core within the groove, while the PFRs hang out of the ends.
The following paper on peptide binding prediction provides a concise definition of these concepts.
[PDF] Improved methods for predicting peptide binding affinity to MHC ...
This paper from the Immune Epitope Database (IEDB) team explains the key concepts of MHC class II binding in the context of developing prediction algorithms.
Please read the introductory section of the paper, from the first paragraph. Focus on the description of the open groove, the variable peptide length, the 9-amino acid peptide binding core, and the role of peptide flanking regions (PFRs).
This binding mode means that a single long peptide can potentially bind to an MHC class II molecule in several different ways, by shifting which 9-mer segment serves as the binding core. This is known as binding in different registers, a critical concept we will return to when we discuss computational epitope prediction.
From Structure to Prediction
The highly specific nature of these interactions—anchor residues on a peptide fitting into complementary pockets on an MHC molecule—is what makes it possible to predict MHC-peptide binding using computational methods. Your interest in machine learning and AI for biology is particularly relevant here.
Algorithms like NetMHCpan (which we will explore in Module 4) are trained on massive datasets of experimentally measured binding affinities. They learn the "rules" of binding for hundreds of different HLA alleles, essentially creating a predictive model of which anchor residues fit best into which pockets.
This field is advancing rapidly. Beyond just predicting binding affinity, new deep learning models like AlphaFold are now capable of predicting the full three-dimensional structure of the peptide-MHC complex with remarkable accuracy.

This ability to model the physical interaction in silico is a powerful tool for your goal of protein deimmunization. By predicting which peptide fragments of a protein like Cas9 will bind strongly to common HLA alleles, you can identify potential T-cell epitopes and then engineer the protein sequence to disrupt that binding, making the therapeutic "stealthier" to the immune system.
Conclusion
In this lesson, we have connected the structural anatomy of MHC molecules to their peptide-binding function. The distinction between the closed groove of class I and the open groove of class II is the central principle governing the first step of antigen presentation.
Key Takeaways:
- MHC Class I: The closed binding groove restricts peptides to a length of 8-10 amino acids. The peptide is anchored primarily by its N- and C-termini.
- MHC Class II: The open binding groove accommodates longer, variable-length peptides (13-25 amino acids). A central 9-mer binding core is secured by anchor residues (P1, P4, P6, P9), while the peptide's ends extend out of the groove.
- This structural specificity, centered on anchor residues and pocket chemistry, forms the basis for computational prediction of T-cell epitopes.
We have now established the genetic basis of MHC (Lessons 1-4) and the structural basis of peptide binding (Lessons 5-6). With this foundation in place, we will move into the next module to explore the dynamic cellular pathways that generate these peptide antigens and load them onto their respective MHC molecules for presentation on the cell surface.