Our analysis showed that the upregulation of AIM2 in GC patients was closely related to immune activation, such as toxic lymphocyte infiltration and an increased number of MHC molecules. Here, HLA-C is linked to gastric cancer.