Background: Endometrial cancer (EC) is one of the most lethal gynecological cancers around the world. The aim of this study is to identify the potential immune microenvironment-related biomarkers associated with the prognosis for EC.Methods: RNA-seq data and clinical information of EC patients were derived from The Cancer Genome Atlas (TCGA). The immune score of each EC sample was obtained by ESTIMATE algorithm. Weighted gene co-expression network analysis (WGCNA) was used to identify the interesting module and potential key genes concerning the immune score. The expression patterns of the key genes were then verified via the GEPIA database. Finally, CIBERSORT was applied to evaluate the relative abundances of 22 immune cell types in EC.Results: Immune scores were significantly associated with tumor grade and histology of EC, and high immune scores may exert a protective influence on the survival outcome for EC. WGCNA indicated that the black module was significantly correlated with the immune score. Function analysis revealed it mainly involved in those terms related to immune regulation and inflammatory response. Moreover, 11 key genes (APOL3, C10orf54, CLEC2B, GIMAP1, GIMAP4, GIMAP6, GIMAP7, GIMAP8, GYPC, IFFO1, TAGAP) were identified from the black module, validated by the GEPIA database, and revealed strong correlations with infiltration levels of multiple immune cell types, as was the prognosis of EC.Conclusion: In this study, 11 key genes showed abnormal expressions and strong correlations with immune infiltration in EC, most of which were significantly associated with the prognosis of EC. These findings made them promising therapeutic targets for the treatment of EC.