This study evaluated the effect of GNAI2 on the tumor microenvironment (TME) in GC, constructed an immune risk score (IRS) model based on differentially-expressed immune genes, and systematically correlated GNAI2 and epigenetic factor expression patterns with TME and IRS. Here, GNAI2 is linked to neoplasm.