Cervical cancer is caused by human papillomavirus (HPV) infection and is preventable through vaccination and screening. Screening via the Pap test can detect precancerous changes in the cervix so that treatment can prevent the development of cancer. Getting regular Pap tests beginning at age 21 or within three years of becoming sexually active can help prevent cervical cancer, as can vaccination against HPV.