In this study, we found that high eosinophil count, history of EGFR-TKI targeted therapy, cycles of ICI administration, and lung cancer were significantly correlated with the incidence of irAEs (p < 0.005), and cycles of ICI administration and lung cancer were independent risk factors for irAEs. This evidence concerns the gene EGFR and lung cancer.