The results of this study were conducive to understanding the functional role of HAVCR2 in the context of tumors and illustrated the potential mechanism of HAVCR2 with tumor–immune interactions, highlighting a potential candidate and biomarker for the immunotherapy revolution in pan-cancer. Here, HAVCR2 is linked to cancer.