Background: Colon cancer is a common and highly malignant tumor. Its incidence is increasing rapidly with poor prognosis. At present, immunotherapy is a rapidly developing treatment for colon cancer. The aim of this study was to construct a prognostic risk model based on immune genes for early diagnosis and accurate prognostic prediction of colon cancer.Results: A total of 477 DE immune genes (180 up-regulated and 297 down-regulated) were detected. We developed and validated twelve immune gene models for colon cancer, including SLC10A2, FABP4, FGF2, CCL28, IGKV1-6, IGLV6-57, ESM1, UCN, UTS2, VIP, IL1RL2, NGFR. The model was proved to be an independent prognostic variable with good prognostic ability. A total of 68 DE TFs (40 up-regulated and 23 down-regulated) were obtained. The regulation network between TF and immune genes was plotted by using TF as source node and immune genes as target node. In addition, Macrophage, Myeloid Dendritic cell and CD4+ T cell increased with the increase of risk score.Conclusions: We developed and validated twelve immune gene models for colon cancer, including SLC10A2, FABP4, FGF2, CCL28, IGKV1-6, IGLV6-57, ESM1, UCN, UTS2, VIP, IL1RL2, NGFR. This model can be used as a tool variable to predict the prognosis of colon cancer.