Based on bioinformatics analysis, we found that the function of BATF2 in promoting antitumor immune response in patients with non–small cell lung cancer, which is mediated by BATF2, enhances CD8+ T-cell infiltration as well as activation. This evidence concerns the gene BATF2 and lung cancer.