Disruption of the gut microbiota impaired hepatic γδ T cell IL-17A production, reduced neutrophil mobilization, and compromised host resistance to infection. Here, IL17A is linked to infection.