This study reveals that CYP17A1 rs17115149 and rs12413409 polymorphisms are associated with T2DM in the Han Chinese population. Here, CYP17A1 is linked to type 2 diabetes mellitus.