Vaccination is the safest method to build immunity against a pathogen your body hasn’t yet met. It uses a harmless version of the bacteria or virus that causes the disease, allowing your immune system to recognise it without causing illness. This triggers a specific immune response to combat it. The immune system then retains a memory of the pathogen, so if a vaccinated person is exposed later, their immune system is ready to fight it off.