Buckwheat dietary fiber has good hypoglycemic activity, with its water-soluble parts and modification widely studied, however, the specific effects and mechanisms of action regarding buckwheat total dietary fiber (BDF) to improve T2DM need to be further explored. In this study, we investigated the improvement of diabetes-related symptoms in db/db mice by 10 % BDF and explored the possible mechanisms. The results showed that hyperglycemia, hyperlipemia, insulin resistance, elevated body weight, severe inflammatory response and impaired intestinal function were significantly improved after 8 weeks of BDF intervention. Moreover, BDF was able to ameliorate the distribution of gut microbiota, enhance the bacteria associated with T2DM, and improve glucose metabolism by altering the levels of the metabolites of gut microbiota, bile acids (BAs), and their receptors, TGR5 and FXR. In addition, BDF activated the hepatic IRS-1/PI3K/AKT pathway which can reduce hepatic gluconeogenesis and promoted glycogen synthesis. Taken together, our results suggest that BDF can alleviate T2DM symptoms by activating the IRS-1/PI3K/AKT pathway and the gut microbiota-BAs-TGR5/FXR axis. The results of this study deepen the exploration of the active ingredients of cereals and suggesting a scientific basis for the development of glucose-lowering functional foods and nutraceuticals.