The immune system protects the body through nonspecific and specific defenses. Nonspecific defenses are the body's first line of defense and include physical and chemical barriers like the skin, mucus, stomach acid, and resident bacteria. If pathogens get past these barriers, the immune system works to recognize and eliminate them by mounting an inflammatory response and using white blood cells.