Our results provide novel insights into the functional role of CD161 in pan-cancer, highlighting a potential mechanism whereby CD161 influences the tumour microenvironment, as well as cancer immunotherapy. This evidence concerns the gene KLRB1 and cancer.