Recent studies have shown that maternal vitamin D deficiency (VDD) causes long-term metabolic changes in offspring. However, little is known about the impact of maternal VDD on offspring endocrine pancreas development and insulin secretion in the adult life of male and female animals. Female rats (Wistar Hannover) were fed either control (1000 IU Vitamin D3/kg), VDD (0 IU Vitamin D3/kg), or a Ca2+-enriched VDD diet (0 IU Vitamin D3/kg + Ca2+ and P/kg) for 6 weeks and during gestation and lactation. At weaning, VDD status was confirmed based on low serum calcidiol levels in dams and pups. Next, male and female offspring were randomly separated and fed a standard diet for up to 90 days. At this age, serum calcidiol levels were restored to normal levels in all groups, but serum insulin levels were decreased in VDD males without affecting glucagon levels, glycemia, or glucose tolerance. Islets isolated from VDD males showed lower insulin secretion in response to different glucose concentrations, but this effect was not observed in VDD females. Furthermore, VDD males, but not females, showed a smaller total pancreatic islet area and lower β cell mass, an effect that was accompanied by reduced gene expression of Ins1, Ins2, Pdx1, and SLC2A2. The decrease in Pdx1 expression was not related to the methylation profile of the promoter region of this gene. Most of these effects were observed in the male VDD+Ca2+ group, indicating that the effects were not due to alterations in Ca2+ metabolism. These data show that maternal VDD selectively impairs the morphology and function of β cells in adult male offspring rats and that female offspring are fully protected from these deleterious effects.