In this study, we mainly analyzed how the mutation status of the TNFα pathway affects the prognosis of ICIs in NSCLC patients from the aspects of tumor immunogenicity and the immune microenvironment. This evidence concerns the gene TNF and non-small cell lung carcinoma.