Diet shapes obesity-associated therapeutic responses to immune checkpoint inhibitors through gut microbial metabolism and host anti-tumour immunity, demonstrated in mouse custom-diet models and human-to-mouse fecal microbiota transplantation experiments.