The objective of this study is to develop a gene signature related to the immune system that can be used to create personalized immunotherapy for Uterine Corpus Endometrial Carcinoma (UCEC). To classify the UCEC samples into different immune clusters, we utilized consensus clustering analysis. Additionally, immune correlation algorithms were employed to investigate the tumor immune microenvironment (TIME) in diverse clusters. To explore the biological function, we conducted GSEA analysis. Next, we developed a Nomogram by integrating a prognostic model with clinical features. Finally, we performed experimental validation in vitro to verify our prognostic risk model. In our study, we classified UCEC patients into three clusters using consensus clustering. We hypothesized that cluster C1 represents the immune inflammation type, cluster C2 represents the immune rejection type, and cluster C3 represents the immune desert type. The hub genes identified in the training cohort were primarily enriched in the MAPK signaling pathway, as well as the PD-L1 expression and PD-1 checkpoint pathway in cancer, all of which are immune-related pathways. Cluster C1 may be a more suitable for immunotherapy. The prognostic risk model showed a strong predictive ability. Our constructed risk model demonstrated a high level of accuracy in predicting the prognosis of UCEC, while also effectively reflecting the state of TIME.