Practise without the danger
A vaccine gives your immune system a safe rehearsal. It contains a germ that has been killed or weakened, a single piece of one, or — in newer vaccines — instructions that make a few of your own cells display one harmless piece of the germ's surface.
Your immune system treats the rehearsal seriously. It builds antibodies and, most importantly, memory cells, exactly as it would for a real infection — but without the illness the real germ could cause.
Ready before the real attack
If the real germ arrives later, memory cells recognise it at once and the response is fast and strong, usually stopping the infection before symptoms start. This is why vaccination is given before exposure: it is training scheduled ahead of the match.
Vaccines also protect people who cannot be vaccinated — newborns, or patients whose immune systems are weak from treatment. When enough people around them are immune, the germ cannot find a path to them. That community shield is called herd immunity.
A drill that emptied hospitals
The results are written in history. Smallpox, which killed hundreds of millions of people, was declared eradicated worldwide in 1980 after a global vaccination campaign. Polio survives today in only a couple of districts on Earth.
The idea is older than the science: in 1796 Edward Jenner showed that infection with mild cowpox protected against deadly smallpox. The word vaccine still honours his experiment — vacca is Latin for cow. Modern vaccines are far more precise, but the principle he demonstrated is unchanged. The pattern repeats wherever vaccination spreads: diseases that once filled children's wards — diphtheria, whooping cough, measles — become rare enough that many doctors never see a case.

