Therefore, the present study suggests that the antidiabetic properties of PF40 in treating T2DM may be through inhibiting the expression of RORγ protein and increasing Foxp3 protein in the jejunum of T2DM rats, and then restoring the STZ-induced imbalance of Th17/ Treg cells, thereby maintaining intestinal immune homeostasis. This evidence concerns the gene FOXP3 and type 2 diabetes mellitus.