This study aimed to examine the effect and underlying mechanism of Puerariae Lobatae Radix on insulin resistance in db/db mice with type 2 diabetes mellitus(T2DM) based on the analysis of intestinal flora. Fifty db/db mice were randomly divided into a model group(M group), a metformin group(YX group), a high-dose Puerariae Lobatae Radix group(YGG group), a medium-dose Puerariae Lobatae Radix group(YGZ group), and a low-dose Puerariae Lobatae Radix group(YGD group). Another 10 db/m mice were assigned to the normal group(K group). After continuous administration for eight weeks, body weight and blood sugar of mice were measured. Enzyme linked immunosorbent assay(ELISA) was used to detect glycosylated serum protein(GSP) and fasting serum insulin(FINS), and insulin resistance index(HOMA-IR) was calculated. The histopathological changes in the pancreas were observed by HE staining. Tumor necrosis factor(TNF)-α expression in the pancreas was detected using immunohistochemistry. The structural changes in fecal intestinal flora in the K, M, and YGZ groups were detected by 16S rRNA. Western blot was used to detect the expression of farnesoid X receptor(FXR) and takeda G protein-coupled receptor 5(TGR5) in the ileum, cholesterol 7α-hydroxylase(CYP7A1) and sterol 27α-hydroxylase(CYP27A1) in the liver, and G protein-coupled receptors 41(GPR41) and 43(GPR43) in the colon. Compared with the K group, the M group showed increased body weight, blood sugar, serum GSP, fasting blood glucose(FBG), and FINS, increased HOMA-IR, inflammatory infiltration of islet cells, necrosis and degeneration of massive acinar cells, unclear boundary between islet cells and acinar cells, disturbed intestinal flora, and down-regulated FXR, TGR5, CYP7A1, CYP27A1, GPR41, and GPR43. Compared with the M group, the YX, YGG, YGZ, and YGD groups showed decreased body weight, blood sugar, serum GSP, FBG, and FINS, islet cells with intact and clumpy morphology and clear boundary, necrosis of a few acinar cells, and more visible islet cells. The intestinal flora in the YGZ group changed from phylum to genus levels, and the relative abundance of intestinal flora affecting the metabolites of intestinal flora increased. The protein expression of FXR, TGR5, CYP7A1, CYP27A1, GPR41, and GPR43 increased. The results show that Puerariae Lobatae Radix can improve the inflammatory damage of pancreatic islet cells and reduce insulin resistance in db/db mice with T2DM. The mechanism of action may be related to the increase in the abundance of Actinobacteria, Bifidobacterium, and Bacteroides in the intestinal tract and the protein expression related to metabolites of intestinal flora.