The gut microbiota and immune system maintain intestinal homeostasis and regulate gut physiology in concert with the enteric nervous system (ENS). However, the underlying mechanisms remain incompletely understood. Using wildtype and T-cell deficient germ-free mice colonized with segmented filamentous bacteria (SFB) or specific pathogen-free (SPF) microbiota, we studied immune regulation of the ENS and intestinal motility. Colonization markedly increased Th17 cells and Treg expressing RORγ+T cells in both the ileum and colon of wildtype mice. T cells were necessary for the normalization of intestinal motility after colonization by SPF microbiota, and for SFB to restore neuronal density in the ENS of the ileum of germ-free mice. T cells were also required for neurogenic responses in myenteric neurons of the ileum, but not the colon, and for regulating the levels of nestin expression. The cytokines IL-1β and IL-17A mediate the enteric neurogenic response to an SPF microbiota but were not involved in the regulation of intestinal motility. Together, our findings provide new insights into the microbiota-neuroimmune dialogue that regulates intestinal physiology, highlighting a role for T cells in regulation of intestinal motility and the cytokines IL-1β and IL-17A in enteric neurogenesis that occurs in adult germ-free mice in response to microbial colonization of the gut.