We found that KRAS is substantially correlated with tumor immune cell infiltration, including B cells, CD8+T cells, CD4+T cells, macrophages, neutrophils, and dendritic cells, suggesting that KRAS may affect tumor processing and prognosis through cancer immunity. Here, KRAS is linked to cancer.