Myd88 deficiency changed the composition of the distal gut microbiota, reduced the Firmicutes/Bacteroidetes ratio, and protected mice from T1D development. Transfer of gut microbiota from Myd88−/− NOD mice reduced insulitis and delayed the onset of diabetes in WT NOD mice. Here, MYD88 is linked to type 1 diabetes mellitus.