The results indicated that TNF‐α and IL‐1β were independently correlated with increased anxiety and depression risks in NSCLC survivors, which could be explained by that as observed in our study, the correlations of TNF‐α and IL‐1β with anxiety and depression tended to be more evident than IL‐6 and IL‐17; meanwhile, IL‐6 and IL‐7 were highly correlated with TNF‐α and IL‐1β. This evidence concerns the gene IL17A and major depressive disorder.