Gastrin is a peptide hormone that stimulates secretion of gastric acid (HCl) by the parietal cells of the stomach and aids in gastric motility. It is released by G cells in the pyloric antrum of the stomach, duodenum, and the pancreas.

Gastrin binds to cholecystokinin B receptors to stimulate the release of histamines in enterochromaffin-like cells, and it induces the insertion of K+/H+ ATPase pumps into the apical membrane of parietal cells (which in turn increases H+ release into the stomach cavity). Its release is stimulated by peptides in the lumen of the stomach.

More Info: en.wikipedia.org