The gastric glands (Glandulae gastricae) are located in the mucosal layers of the stomach. They flow into the stomach pits and release their secretions there. These glands contain the main cells that produce pepsinogen and the subsidiary cells that produce acidic mucus.

Furthermore, another group of cells, namely the parietal cells, give off hydrogen ions, through which hydrochloric acid can be formed in the stomach. In addition, there are the chlorine ions via the bloodstream. It should also be mentioned that gastric secretion is influenced by hormones and the vagus nerve takes over reflex control in this process.