Chronic infection with some types of Human papillomavirus (HPV) is the primary cause of cervical cancer.