The HBV vaccine works by introducing a harmless component of the virus to the immune system, typically the HBsAg. This triggers the immune system to produce antibodies against the virus. If the vaccinated individual is later exposed to the actual virus, these antibodies can quickly neutralize it, preventing infection and the associated rise in HBV DNA levels.