Vaccines prepare the immune system for future attacks by mimicking infections, providing immunity.
Vaccines help the body's immune system prepare for future attacks by containing killed or modified microbes that trick the body into preparing for invasions against the kind of microbe the vaccine contained. When a person is vaccinated, their immune system recognizes and remembers how to stop the infection if re-exposed to the infectious microbe, providing immunity.
https://brainly.com/question/33302167