Cervical cancer is a cancer that forms in the cells of the cervix. It is caused by human papillomavirus (HPV) infection in most cases. Regular screening tests can detect precancerous changes in the cervix so women can get treatment early on to prevent cancer from developing.