The immune system includes three lines of defense against foreign invaders: physical and chemical barriers, nonspecific resistance, and specific resistance. The first line of defense are the physical and chemical barriers, which are considered functions of innate immunity.