High CD39-expressing CD8+ T cells were an independent risk factor for the prognosis of ESCC, and its expression was significantly positively correlated with the expression of PDCD1, CTLA4, and HAVCR2. The gene discussed is CTLA4; the disease is esophageal squamous cell carcinoma.