Copyright © 2017 The Authors. We have a mutually beneficial relationship with the trillions of microorganisms inhabiting our gastrointestinal tract. However, maintaining this relationship requires recognizing these organisms as affable and restraining inflammatory responses to these organisms when encountered in hostile settings. How and when the immune system develops tolerance to our gut microbial members is not well understood. We identify a specific preweaning interval in which gut microbial antigens are encountered by the immune system to induce antigen-specific tolerance to gut bacteria. For some bacterial taxa, physiologic encounters with the immune system are restricted to this interval, despite abundance of these taxa in the gut lumen at later times outside this interval. Antigen-specific tolerance to gut bacteria induced during this preweaning interval is stable and maintained even if these taxa are encountered later in life in an inflammatory setting. However, inhibiting microbial antigen encounter during this interval or extending these encounters beyond the normal interval results in a failure to induce tolerance and robust antigen-specific effector responses to gut bacteria upon reencounter in an inflammatory setting. Thus, we have identified a defined preweaning interval critical for developing tolerance to gut bacteria and maintaining the mutually beneficial relationship with our gut microbiota.