The small intestine is traditionally viewed as an organ that mediates nutrient digestion and absorption. This view has recently been revised owing to the ability of the duodenum to sense nutrient influx and trigger negative feedback loops to inhibit glucose production and food intake to maintain metabolic homeostasis. Further, duodenal nutrient-sensing defects are acquired in diabetes and obesity, leading to increased glucose production. In contrast, jejunal nutrient sensing inhibits glucose production and mediates the early antidiabetic effect of bariatric surgery, and gut microbiota composition may alter intestinal nutrient-sensing mechanisms to regain better control of glucose homeostasis in diabetes and obesity in the long term. This perspective highlights nutrient-sensing mechanisms in the gut that regulate glucose homeostasis and the potential of targeting gut nutrient-sensing mechanisms as a therapeutic strategy to lower blood glucose concentrations in diabetes.