At the surface of antigen-presenting cells MHC class I and class II molecules present peptides to respectively CD8+ and CD4+ T cells. MHC class I molecules acquire peptides right after synthesis in the endoplasmic reticulum. MHC class II molecules do not acquire peptides in the endoplasmic reticulum but instead associate with a third chain, the invariant chain which impedes peptide binding. Subsequently the invariant chain takes MHC class II molecules to the endosomal/lysosomal compartment thanks to a targeting signal retained in its cytoplasmic tail. It then dissociates from the MHC class II dimer to allow it to bind peptides.