There has been a striking generational increase in life-threatening food allergies in Westernized societies1,2. One hypothesis to explain this rising prevalence is that twenty-first century lifestyle practices, including misuse of antibiotics, dietary changes, and higher rates of Caesarean birth and formula feeding have altered intestinal bacterial communities; early-life alterations may be particularly detrimental3,4. To better understand how commensal bacteria regulate food allergy in humans, we colonized germ-free mice with feces from healthy or cow’s milk allergic (CMA) infants5. We found that germ-free mice colonized with bacteria from healthy, but not CMA, infants were protected against anaphylactic responses to a cow’s milk allergen. Differences in bacterial composition separated the healthy and CMA populations in both the human donors and the colonized mice. Healthy and CMA colonized mice also exhibited unique transciptome signatures in the ileal epithelium. Correlation of ileal bacteria with genes upregulated in the ileum of healthy or CMA colonized mice identified a clostridial species, Anaerostipes caccae, that protected against an allergic response to food. Our findings demonstrate that intestinal bacteria are critical for regulating allergic responses to dietary antigens and suggest that interventions that modulate bacterial communities may be therapeutically relevant for food allergy.