We found that a selective gut microbiota change controls and increases endogenous GLP-2 production, and consequently improves gut barrier functions by a GLP-2-dependent mechanism, contributing to the improvement of gut barrier functions during obesity and diabetes. Here, GCG is linked to diabetes mellitus.