These findings show that Aldh1b1 influences the timing of the transition from the pancreas endocrine progenitor to the committed beta cell and demonstrate that changes in the timing of this transition lead to beta cell dysfunction and thus constitute a diabetes risk factor later in life. This evidence concerns the gene ALDH1B1 and diabetes mellitus.