Through causal mediation analyses in the prospective DAISY study, we demonstrated that the maternal protective effect conferred through exposure to T1D in utero may operate through changes to DNA methylation near DLGAP2 that have functional downstream consequences. Here, DLGAP2 is linked to type 1 diabetes mellitus.