Rare variants in the HNF1A gene can cause monogenic diabetes, while common variants confer type 2 diabetes risk. Here, HNF1A is linked to type 2 diabetes mellitus.