What is the use of a vaccine?

Vaccines can be used to provide immunity to a specific disease or infection. It works by stimulating the body's immune system to be able to identify and destroy threat agents.