When Gardasil is administered, it introduces virus-like particles (VLPs) into the body. These VLPs mimic the outer protein coat of the HPV virus but lack its DNA, making them non-infectious. The immune system recognizes these VLPs as foreign and mounts an immune response, including the production of memory B cells. These memory B cells allow for a rapid and robust immune response upon future exposure to the actual HPV virus.