A pan-cancer analysis of primary and metastatic tumors highlights the diversity of genetic immune escape mechanisms established during tumor evolution. The authors also present LILAC, a tool to characterize the HLA-I locus from whole-genome sequencing data.