Intestinal hormone-producing cells represent the largest endocrine system in the body, but remarkably little is known about enteroendocrine cell type specification in the embryo and adult. We analyzed stage-and cell type-specific deletions of Nkx2.2 and its functional domains in order to characterize its role in the development and maintenance of enteroendocrine cell lineages in the mouse duodenum and colon. Although Nkx2.2 regulates enteroendocrine cell specification in the duodenum at all stages examined, it controls the differentiation of progressively fewer enteroendocrine cell populations when deleted from Ngn3 + progenitor cells or in the adult duodenum. During embryonic development Nkx2.2 regulates all enteroendocrine cell types, except gastrin and preproglucagon. In developing Ngn3+ enteroendocrine progenitor cells, Nkx2.2 is not required for the specification of neuropeptide Y and vasoactive intestinal polypeptide, indicating that a subset of these cell populations derive from an Nkx2.2-independent lineage. In adult duodenum, Nkx2.2 becomes dispensable for cholecystokinin and secretin production. In all stages and Nkx2.2 mutant conditions, serotonin-producing enterochromaffin cells were the most severely reduced enteroendocrine lineage in the duodenum and colon. We determined that the transcription factor Lmx1a is expressed in enterochromaffin cells and functions downstream of Nkx2.2. Lmx1a-deficient mice have reduced expression of Tph1, the rate-limiting enzyme for serotonin biosynthesis. These data clarify the function of Nkx2.2 in the specification and homeostatic maintenance of enteroendocrine populations, and identify Lmx1a as a novel enterochromaffin cell marker that is also essential for the production of the serotonin biosynthetic enzyme Tph1.