Parietal cells in the stomach secrete roughly two liters of acid a day in the form of hydrochloric acid. Acid in the stomach functions to kill bacteria, and to aid digestion by solubilizing food. The acid is also important to establish the optimal pH (between 1.8-3.5) for the function of the digestive enzyme pepsin.