The current research aims to investigate the relationship between Interleukin-17 (IL-17) polymorphism and the risk of recurrent pregnancy loss (RPL) within a Chinese population. Totally, 120 patients with RPL were selected and enrolled as the experiment group. Additionally, 210 healthy individuals undergoing routine physical examinations during the same period served as the control group. The IL-17 gene polymorphism was detected by polymerase chain reaction-restriction fragment length polymorphism method. The IL-17 rs2275913 polymorphism exhibited 3 genotypes: GG, GA, and AA. Significant associations were observed with the AA genotype and A allele (all P < .05), indicating women with the AA genotype were 2.06 times more likely to experience RPL compared to those with the GG genotype. Similarly, women carrying the A allele faced a 1.63 times higher risk of RPL than those with the G allele. Regarding the IL-17 rs763780 polymorphism, which also presented 3 genotypes (TT, TC, CC), significant associations were noted for the CC genotype and C allele (all P < .05). Women with the CC genotype had a 1.84 times greater risk of suffering from RPL compared to those with the TT genotype, and those with the C allele were 1.51 times more likely to experience RPL than those with the T allele. The IL-17 rs2275913 and rs763780 polymorphisms contribute an increased risk to RPL in the Chinese population. Further studies, with larger sample sizes and more rigorous designs, are necessary to validate or replicate our current results.