A vaccine is a biological preparation that improves immunity to a particular disease.
The vaccines also generte memory B and T cells that recognise the pathogen quickly on subsequent exposure and overwhelm the invaders with a massive production of antibodies.