These results show that STAT3 expression is closely related to immune infiltration and may be a novel target for cancer immunotherapy. This evidence concerns the gene STAT3 and cancer.