The prevalence of diabetes has increased in last decades worldwide and is expected to continue to do so in the coming years, reaching alarming figures. Evidence have shown that patients with type 2 diabetes (T2D) have intestinal microbial dysbiosis. Moreover, several mechanisms link the microbiota with the appearance of insulin resistance and diabetes. Diet is a crucial factor related to changes in the composition, diversity, and activity of gut microbiota (GM). In this review, the current and future possibilities of nutrient-GM interactions as a strategy to alleviate T2D are discussed, as well as the mechanisms related to decreased low-grade inflammation and insulin resistance. A bibliographic search of clinical trials in Pubmed, Web of Science, and Scopus was carried out, using the terms "gut microbiota, diet and diabetes." The data analyzed in this review support the idea that dietary interventions targeting changes in the microbiota, including the use of prebiotics and probiotics, can improve glycemic parameters. However, these strategies should be individualized taking into account other internal and external factors. Advances in the understanding of the role of the microbiota in the development of metabolic diseases such as T2D, and its translation into a therapeutic approach for the management of diabetes, are necessary to allow a comprehensive approach.