Metformin attenuates IBD severity and reduces inflammation through the inhibition of p-STAT3 and IL-17 expression. This evidence concerns the gene IL17A and inflammatory bowel disease.