The stomach is protected from the hydrochloric acid by epithelial cells, which secrete a bicarbonate substance that covers the mucosa. Since the bicarbonate solution is alkaline, it neutralizes the hydrochloric acid produced by parietal cells and subsequently results in formation of water. Importantly, the consistent secretion of the bicarbonate solution is what protects the stomach from the strong acidic environment.