These data indicate that STAT3 may confer a protective effect against pathogens by controlling bacterial growth and infection via transcriptional regulation of antimicrobial genes during colitis development. Here, STAT3 is linked to colitis.