The gut microbiota can affect the occurrence of diabetes by affecting the composition and metabolism of BAs, as well as their binding to FXR and TGR5 receptors. This evidence concerns the gene NR1H4 and diabetes mellitus.