Gastric acid
The main constituent of gastric acid is hydrochloric acid which is produced by parietal cells (also called oxyntic cells) in the gastric glands in the stomach. Its secretion is a complex and relatively energetically expensive process. Parietal cells contain an extensive secretory network (called canaliculi) from which the hydrochloric acid is secreted into the lumen of the stomach. The pH of gastric acid is 1.5 to 3.5 in the human stomach lumen, the acidity being maintained by the proton pump H/K ATPase. The parietal cell releases bicarbonate into the bloodstream in the process, which causes a temporary rise of pH in the blood, known as an alkaline tide.
Pepsin
In the stomach, chief cells release pepsinogen. This zymogen is activated by hydrochloric acid (HCl), which is released from parietal cells in the stomach lining. The hormone gastrin and the vagus nerve trigger the release of both pepsinogen and HCl from the stomach lining when food is ingested. Hydrochloric acid creates an acidic environment, which allows pepsinogen to unfold and cleave itself in an autocatalytic fashion, thereby generating pepsin (the active form). Pepsin cleaves the 44 amino acids from pepsinogen to create more pepsin.