Until now, IPF has been regarded as a risk factor for lung toxicity with respiratory deterioration and acute exacerbations when considering anti-PD-1 or anti-PD-L1 immunotherapy in non-small cell lung cancer. This evidence concerns the gene CD274 and idiopathic interstitial pneumonia.