The gut microbiota can alter the effects of anticancer fluoropyrimidines such as 5-fluorodeoxyuridine (FUdR) in the model organism C. elegans. Here, the authors show that these effects are further affected by diet, and dietary thymidine and serine increase FUdR toxicity in C. elegans via different mechanisms.