Prenatal OXTR deficiency potentiates maternal diabetes-mediated anxiety-like behavior but has little effect on ALB; additionally, postnatal OXTR expression partly, while postnatal ERβ expression completely, reversed maternal diabetes-mediated social deficits. Here, OXTR is linked to diabetes mellitus.