Certain MHC-II or HLA-D alleles dominantly protect from particular autoimmune diseases. For example, expression of the MHC-II Eα:Eβ complex potently protects nonobese diabetic (NOD) mice, which normally lack this isotype, from spontaneous development of type 1 diabetes. However, the underlying mechanisms remain debated. We investigated MHC-II–mediated protection from type 1 diabetes using a previously reported NOD mouse line expressing an Eα transgene and, thereby, the Eα:Eβ complex. Eα16/NOD females vertically protected their NOD offspring from diabetes and insulitis, an effect that was dependent on the intestinal microbiota; moreover, they developed autoimmunity when treated with certain antibiotics or raised in a germ-free environment. Genomic and proteomic analyses revealed NOD and Eα16/NOD mice to host mild but significant differences in the intestinal microbiotas during a critical early window of ontogeny, and transfer of cecal contents from the latter to the former suppressed insulitis. Thus, protection from autoimmunity afforded by particular MHC/HLA alleles can operate via intestinal microbes, highlighting potentially important societal implications of treating infants, or even just their pregnant mothers, with antibiotics.