Immunisation works by stimulating the adaptive immune system to build memory against specific pathogens.