For advanced, refractory endometrial cancer (EC), it is advisable to find effective immunotherapeutic targets. In the present study, genes affecting the immune status of uterine corpus endometrial carcinoma (UCEC) samples within The Cancer Genome Atlas were explored by weighted correlation network analysis and differential gene expression analysis. The protein function and immune correlation of 14 key genes, including ζ-chain-associated protein kinase 70 (ZAP70), were analyzed. Based on the expression levels of key genes, the patients with UCEC were divided into two groups using consensus clustering, low expression (group 1) and high expression (group 2). Next, the functions of differentially expressed genes (DEGs) between the two groups were identified using Gene Ontology enrichment analysis, Kyoto Encyclopedia of Genes and Genomes analysis and Gene Set Enrichment Analysis. The immune status of the patients in the two groups was evaluated using immune infiltration score and the expression levels of targets of immune checkpoint inhibitors. The role of ZAP70 in the prognosis of patients with UCEC and the differences in ZAP70 expression between EC tissues and healthy intimal tissues were determined by reverse transcription-quantitative PCR and immunohistochemistry. The present study found strong correlations between key genes, including ZAP70,