The immune system counters attacks from pathogens in three lines of defense:
1. Barriers: keeping the pathogens out
2. Phagocytes: attacking and wiping out invaded pathogens
3. Lymphocytes: learning from phagocytes how to specifically and effectively kill a certain type of pathogen