When a bacterial infection is established in the body, the purpose of the immune system is to control or eradicate it. The initial reaction of the immune system to an infection varies, depending on the site which has been invaded and on the nature of the invader. There can be many "triggers", that can spur the immune system into action. Here are some of the ways in which the immune system can be activated.