Two related chronic inflammatory diseases, Crohn's disease and ulcerative colitis, are together often referred to as inflammatory bowel disease (IBD). Current treatment options are not curative, and patients face lifelong therapy and debilitation. IBD is thought to be the product of a combination of genetic and environmental factors that result in the abnormal regulation of immune responses. Experimental models have demonstrated that normal CD4+ T-regulatory (Treg) cell responses and commensal bacteria are required for the maintenance of gut immune homeostasis. Recent evidence that CD4+ T cells express Toll-like receptors (TLRs) and respond directly to TLR ligands, suggests that signals from commensal bacteria may directly affect T-cell responses in the gut. In this review, we focus on evidence that defects in Treg cells may underlie IBD in humans. In addition, we discuss evidence that direct signaling via TLRs to T cells can affect IBD and that T-cell-dependent responses to bacterial proteins, such as flagellin, are central to the aetiology of this disease.