Neuroendocrine cells, including those in the gut, have a vast array of functions. A new study shows that conditional inactivation of the gene encoding Foxo1 in mouse intestinal endocrine cells converts them into cells synthesizing and secreting insulin. Ectopic gut insulin production was sufficient to ameliorate glucose control in mice with conditional pancreatic β-cell loss and diabetes mellitus.