The aim of the study was to detect of human papillomavirus (HPV) in cervical mucus of women with spontaneous abortion by real-time PCR. Cervical mucus of 200 women with spontaneous abortion and 100 full term pregnant women were included in this cross-sectional which carried out in Kirkuk city-Iraq from beginning of 1st of October 2018 to the end of December 2018. HPV DNA was detected real-time PCR of genotype 16, 18 and 58 in cervical samples. The study showed that the highest rate of HPV DNA (29.5%) was detected in women with abortion comparing with pregnant women (12%) with highly significant relation of HPV with abortion (P. value: <0.05). The study stated that the highest rate of aborted women was infected with HPV 16 (37.29%) followed by HPV 58 (30.26%) while HPV 18 was found in 12.26% of those women and 13.56% of them was infected with both HPV 16 and HPV 58 genotypes. The study exhibited that 36.37% of aborted women with one time in their marriage age was infected with HPV followed by 28.995 in women with 2-3 time, the study presented that 52.5% of women with abortion was belonged to the age group 27-36 years. Conclusion: Spontaneous abortion was highly associated with HPV infection specially with HPV 16 genotype.