Gastrin is a hormone the stomach produces that stimulates the release of gastric acid. It is located in the G cells in the lining of the stomach and upper small intestine. When you eat, gastrin stimulates the release of gastric acid, an important part of the digestive process.