This case report highlights that both pneumonitis and bacterial pneumonia can occur as complications of anti-PD-1 immunotherapy. Here, PDCD1 is linked to pneumonitis.