During infection and cancer, foreign peptides must compete with these self-peptides to mark infected or cancerous cells for CD8+ T-cell cytotoxicity. Here, CD8A is linked to infection.