The human body has a natural defence system called the immune system. When a germ enters the body for the first time, the immune system needs several days to recognise it and to build the right defence. During that time, the person may become seriously ill.
A vaccine is designed to give the body a safe preview. It contains either a weakened or inactive form of a germ, or only a small part of it, so it cannot cause the full disease. The immune system reacts to this harmless sample and creates special cells that remember the germ. If the real germ arrives later, the body already knows how to respond and can act much faster.
Some vaccines need extra doses, called boosters, because protection can become weaker over time. Vaccines also have a wider effect: when most people in a community are protected, the germ finds it difficult to spread, and people who cannot be vaccinated are safer too. Like any medicine, vaccines are tested carefully and monitored for side effects, which are usually mild, such as a sore arm or a short fever. A doctor or pharmacist is the best person to explain which vaccines you need.