Our results found that rs3218977 in IL‐1R2 was associated with a decreased risk of lung cancer, especially in patients with lung squamous cell carcinoma. Here, IL1R2 is linked to lung cancer.