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. This evidence concerns the gene GCG and obesity due to melanocortin 4 receptor deficiency.