Our study suggested that elevated levels of HLA-DRA expression and higher methylation levels may reduce the risk of gastric cancer. Here, HLA-DRA is linked to gastric cancer.