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. Here, CD274 is linked to pneumonia.