Stomach acid plays an essential role in the immune system by killing harmful bacteria and parasites that are ingested with food. Stomach acid activates the enzyme pepsin needed for protein digestion. Stomach acid signals to the pancreas produce digestive juices and enzymes to further break down food.