In summary, SLAMF7 and IL1R1 acted as crucial prognostic factors in ESCC. This evidence concerns the gene SLAMF7 and esophageal squamous cell carcinoma.