Even if the associations were at the limit of significance, our results suggest that the concentration of environmental pollutants (PM2.5 and NO2) five years before cancer diagnosis is associated with TP53-mutated NSCLC, using improved estimation methods to assess air pollution. Here, TP53 is linked to cancer.