Objective To investigate the association between IL17A gene rs2275913 polymorphism and type 2 diabetes mellitus (T2DM) and its microvascular complications. Methods A total of 296 patients with T2DM admitted to the First People's Hospital of Ruzhou from January 2022 to December 2023 were enrolled as the study group, and 148 healthy controls were selected at a 2:1 ratio during the same period. Polymerase chain reaction-restriction fragment length polymorphism was used to detect the IL17A gene rs2275913 polymorphism, and the Hardy-Weinberg equilibrium test was applied to evaluate sample representativeness. (1) Genetic susceptibility analysis of T2DM: Genotype and allele distributions were compared between the study group and the control group to determine the association between this polymorphism and T2DM risk. (2) Analysis of influencing factors for microvascular complications: The 296 T2DM patients were divided into a complication group (n=121) and a non-complication group (n=175) based on the presence or absence of microvascular complications. Clinical data and genotype distributions were compared between the two groups, and multivariate logistic regression analysis was performed to identify independent factors associated with microvascular complications. Results The genotype distributions of the IL17A gene rs2275913 polymorphism in both the study group and the control group were in Hardy-Weinberg equilibrium (both P>0.05). (1) Genetic susceptibility analysis showed that the frequency of the GG genotype in the case group was lower than that in the control group (37.84% vs. 50.68%, adjusted P<0.0167), and the frequency of the A allele was higher than that in the control group (40.71% vs. 30.41%, P=0.003). (2) Analysis of influencing factors for microvascular complications showed statistically significant differences between the complication group and the non-complication group in terms of history of hyperlipidemia, fasting blood glucose, HbA1c, total cholesterol, triglycerides, and IL17A genotype distribution (all P<0.05). Multivariate logistic regression analysis revealed that the AA genotype of IL17A gene rs2275913 (OR=1.842, 95% CI: 1.142-2.972), history of hyperlipidemia (OR=2.366, 95% CI: 1.316-4.251), fasting blood glucose (OR=1.631, 95% CI: 1.072-2.480), and HbA1c (OR=1.508, 95% CI: 1.140-1.996) were independently associated with microvascular complications in T2DM patients (all P<0.05). Conclusion The IL17A gene rs2275913 polymorphism is statistically associated with T2DM and its microvascular complications. Carrying the AA genotype may increase susceptibility to microvascular complications in T2DM patients. History of hyperlipidemia and elevated levels of fasting blood glucose and HbA1c are also independently associated with microvascular complications.