In our study, based on the colon cancer immune gene datasets, we used WGCNA to identify 21 immune-related hub genes affecting patients’ OS and constructed IRGPI based on 8 independent OS prognostic factors (UCN, TRIM58, RBCK1, TPM2, CD36, NMB, PPARGC1A, and LGALS4). This evidence concerns the gene TRIM58 and malignant colon neoplasm.