This retrospective cohort study explored the impact of PD-1 and PD-L1 inhibitors on the incidence of pneumonitis and pneumonia as a composite endpoint. This evidence concerns the gene CD274 and pneumonitis.