When germs, such as bacteria or viruses, invade the body, they attack and multiply. This invasion is called an infection, and the infection is what causes illness. The immune system then has to fight the infection. Once it fights off the infection, the body is left with a supply of cells that help recognize and fight that disease in the future.