The HPV vaccine molecule contains virus-like particles (blue) that are noninfectious and stimulate the immune system to produce antibodies (red) that can prevent HPV infections.
From https://irp.nih.gov/blog/post/2015/01/the-power-of-vaccines-research