Our study provided strong evidence for the underlying mechanisms by which genetic variation, methylation, and gene expression of HLA-DRA were associated with the trait of gastric cancer. Here, HLA-DRA is linked to gastric cancer.