Based on 407 gastric cancer (GC) samples retrieved from The Cancer Genome Atlas (TCGA), 36 immune-related hub genes were identified by weighted gene co-expression network analysis (WGCNA), and eight of them (RNASE2, CGB5, INHBE, DUSP1, APOA1, CD36, PTGER3, CTLA4) were used to formulate the Cox regression model. The gene discussed is CGB5; the disease is gastric cancer.