The HPV vaccine is an immunization against several types of HPV known to cause cancer and genital warts. There are three main types of HPV vaccines: Gardasil, Gardasil 9, and Cervarix. These vaccines are designed to protect against the most common and high-risk HPV strains, particularly HPV 16 and 18, which are responsible for the majority of HPV-related cancers.