The prevalence of life-threatening anaphylactic responses to food is rising at an alarming rate. The emerging role of the gut microbiota in regulating food allergen sensitization may help explain this trend. The mechanisms by which commensal bacteria influence sensitization to dietary antigens are only beginning to be explored. We have found that a population of mucosa-associated commensal anaerobes prevents food allergen sensitization by promoting an IL-22-dependent barrier protective immune response that limits the access of food allergens to the systemic circulation. This early response is followed by an adaptive immune response mediated in part by an expansion of Foxp3(+) Tregs that fortifies the tolerogenic milieu needed to maintain non-responsiveness to food. Bacterial metabolites, such as short-chain fatty acids, may contribute to the process through their ability to promote Foxp3(+) Treg differentiation. This work suggests that environmentally induced alterations of the gut microbiota offset the regulatory signals conferred by protective bacterial species to promote aberrant responses to food. Our research presents exciting new possibilities for preventing and treating food allergies based on interventions that modulate the composition of the gut microbiota.