The immune system fights viruses and bacteria that can harm the body. Some substances that enter the body are harmless. The body usually ignores them.