Neurogenin3(+) (Ngn3(+)) progenitor cells in the developing pancreas give rise to five endocrine cell types secreting insulin, glucagon, somatostatin, pancreatic polypeptide and ghrelin. Gastrin is a hormone produced primarily by G-cells in the stomach, where it functions to stimulate acid secretion by gastric parietal cells. Gastrin is expressed in the embryonic pancreas and is common in islet cell tumors, but the lineage and regulators of pancreatic gastrin(+) cells are not known. We report that gastrin is abundantly expressed in the embryonic pancreas and disappears soon after birth. Some gastrin(+) cells in the developing pancreas co-express glucagon, ghrelin or pancreatic polypeptide, but many gastrin(+) cells do not express any other islet hormone. Pancreatic gastrin(+) cells express the transcription factors Nkx6.1, Nkx2.2 and low levels of Pdx1, and derive from Ngn3(+) endocrine progenitor cells as shown by genetic lineage tracing. Using mice deficient for key transcription factors we show that gastrin expression depends on Ngn3, Nkx2.2, NeuroD1 and Arx, but not Pax4 or Pax6. Finally, gastrin expression is induced upon differentiation of human embryonic stem cells to pancreatic endocrine cells expressing insulin. Thus, gastrin(+) cells are a distinct endocrine cell type in the pancreas and an alternative fate of Ngn3+ cells.