The human papillomavirus (HPV) vaccine protects against certain types of HPV and reduces the risk of cancers caused by HPV.