B cell-specific TLR9 deficiency alters gut microbiota, increasing gut permeability and promoting IL-10-expressing Breg cells, which delay T1D. Here, TLR9 is linked to type 1 diabetes mellitus.