In patients with COVID-19, diabetes mellitus type 2 (T2DM) increases the risk of hospitalization and death. Patients who have IL-6 and IL-17A single nucleotide polymorphisms (SNPs) are more likely to have severe COVID-19. This study aims to determine whether SNPs of the IL-6 gene at rs1800795 (G > C) and the IL-17A gene at rs2275913 (G > A) are associated with COVID-19 and T2DM in the Iraqi population. Twenty-four people were divided into 4 groups as follows: six patients with severe COVID-19 and T2DM were placed in Group 1 as "G1", six patients with COVID-19 but no T2DM were placed in Group 2 as "G2", and six patients with T2DM were placed in Group 3 as "G3". There were also six healthy controls included in each group. Polymerase chain reaction (PCR) was used to amplify the target genes after genomic DNA from the blood samples was extracted. Sanger sequencing was used to find the SNPs in both the forward and reverse directions for each sample. In the case of IL-6 SNP at rs1800795, the GG genotype was more common in "G3", the CC genotype was less common in all patient groups than in controls, and the GC allele was more common in "G2" than in the control group. In comparison to the controls, the three patient groups showed lower frequencies of the C allele and higher frequencies of the G allele. Regarding IL-17A gene polymorphism, the AA and GA genotypes were more prevalent in "G2" and "G3", respectively. The GG genotype and G allele frequency dropped in all patient groups compared to the control group, whereas the A allele frequency increased in all patient groups. The IL-6 gene at rs1800795 (G/C) and the IL-17A gene at rs2275913 (G/A) loci were associated with COVID-19 and T2DM in Iraqi population.