Ngn3 is a transcription factor necessary for formation of endocrine cells, such that Ngn3-null mice die within the first week of life from diabetes. Here, NEUROG3 is linked to diabetes mellitus.