H2-Aa–deficient cDC2, but not cDC1, were essential for melanoma suppression and effectively cross-primed and recruited CD8 T cells into tumors. This evidence concerns the gene CD8A and melanoma.