We show that changes in the gut microbiome after infection are caused by reduced food intake and that this is associated with CD8+ T cells. This evidence concerns the gene CD8A and infection.