Why is vaccination considered a prevention of diseases?

Why is vaccination considered a prevention of diseases?
Answer:
Vaccines induce a specific immune response in the body. This response also produce memory cells which persist in the body even in the absence of pathogen. If the pathogen attacks the body again, the immune system with the help of memory cells recognise it and destroy it before it causes the disease.