Cervical cancer is caused by the human papillomavirus (HPV), a sexually transmitted infection (STI).