Citrobacter rodentium (C. rodentium) infection is a widely used murine model to mimic human enteric bacteria infection and inflammatory bowel disease (IBD). In this model, interleukin (IL)‑17A plays critical roles in increasing chemokine and cytokine production in various tissues to recruit innate cells, including monocytes and neutrophils, to the local site of infection. However, the source of IL‑17A remains unclear, as the majority of cell types produce IL‑17A, including intestinal endothelium cells, innate immune cells and CD4+ T cells in disease development. In the current study, wild‑type B6 mice were treated with C. rodentium and the CD4+ Th17 cell subset was observed as being specifically increased in Peyer's patches (PP), but not in mesenteric draining lymph nodes. Furthermore, the research suggested that the differentiation and activation of Th17 cells in PP were dependent on the inflammatory cytokine IL‑6, as blocking IL‑6 signaling with neutralizing antibodies decreased Th17 cells and resulted in the mice being more susceptible to C. rodentium infection. These results confirmed that the Th17 cell subset was specifically activated in PP and demonstrated that IL‑6 is required in Th17 cell activation, which are important to the clinical treatment of IBD.