The stomach produces hydrochloric acid, which creates an acidic environment that helps to destroy ingested pathogens. It acts as a barrier against pathogens that enter the body through the digestive system.