The HPV vaccine is highly effective in preventing infections from high-risk HPV types that are responsible for the majority of cervical cancer cases. The vaccine is recommended for preteens but can be administered up to age 26 in women who were not vaccinated at a younger age.