The immune system is made of blood cells and chemicals that find bacteria and viruses and destroy them. When the immune system tries to fight bacteria in the intestines, the intestines can become inflamed, swollen, destroyed, or scarred.