Tumor depth, CD8, and PD‐L1 TC were independent prognostic factors in ESCC, and a predictive nomogram with these three risk factors improved the accuracy of predicting OS in patients with ESCC after surgical resection. The gene discussed is CD274; the disease is esophageal squamous cell carcinoma.