Given the results of our immune infiltration analysis, we propose that E2F1, E2F2, E2F3, and E2F5 may potentially affect the progression of cancer through anticancer immunity. This evidence concerns the gene E2F2 and cancer.