In the stomach, gastric acid and proteases serve as powerful chemical defenses against ingested pathogens.Within the genitourinary and gastrointestinal tracts, commensal flora serve as biological barriers by competing with pathogenic bacteria for food and space and, in some cases, by changing the conditions in their environment, such as pH or available iron.