Rare variants in the HNF1A gene can cause monogenic diabetes, while common variants confer type 2 diabetes risk. This evidence concerns the gene HNF1A and diabetes mellitus.