Our findings showed that SPP1 + SIRPα + macrophages could be immune inhibiting and represented an unfavorable prognostic biomarker in cancer patients including ESCC and HCC. The gene discussed is SPP1; the disease is esophageal squamous cell carcinoma.