RFX6 expression is central to the development and function of the neuroendocrine compartments of the pancreas and intestine and strongly affects diabetes risk. Here, RFX6 is linked to diabetes mellitus.