Islet-infiltrating CD8+ T cells from HLA-B40+ T1D patients recognize HLA-B40-restricted β-cell peptides. Here, CD8A is linked to type 1 diabetes mellitus.