Gastrin is the major hormone that regulates acid secretion in the stomach. It is produced by special cells in the stomach. Small amounts of gastrin may also be produced by the pancreas and possibly the intestines. When there is food in the stomach, gastrin is released into the blood. As stomach and intestinal acidity rises, gastrin production normally decreases.