Once your immune system is trained to fight a disease, it is said to be immune to it. Before vaccines, the only way to become immune to a disease was to get the disease and survive.