Here, we conducted a large-scale pancancer association analysis of HLA-A, -B, and -C (class I) and HLA-DRB1, DQA1, DQB1, DPA1, and DPB1 (class II) genes to address whether specific HLA alleles contribute to cancer risk. Here, HLA-DPA1 is linked to cancer.