Our findings show that GLI2 plays an essential role in human endocrine cell development and identify a previously unknown variant that eventually leads to diabetes. Here, GLI2 is linked to diabetes mellitus.