Patients who responded to anti–PD-1 therapy and experienced prolonged progression-free survival had a much greater diversity of gut bacteria.