The biochemical response to food intake must be precisely regulated. Because ingested sugars and fats can feed into many anabolic and catabolic pathways1, how our bodies handle nutrients depends on strategically positioned metabolic sensors that link the intrinsic nutritional value of a meal with intermediary metabolism. Here we describe a subset of immune cells-integrin β7+ natural gut intraepithelial T lymphocytes (natural IELs)-that is dispersed throughout the enterocyte layer of the small intestine and that modulates systemic metabolism. Integrin β7- mice that lack natural IELs are metabolically hyperactive and, when fed a high-fat and high-sugar diet, are resistant to obesity, hypercholesterolaemia, hypertension, diabetes and atherosclerosis. Furthermore, we show that protection from cardiovascular disease in the absence of natural IELs depends on the enteroendocrine-derived incretin GLP-12, which is normally controlled by IELs through expression of the GLP-1 receptor. In this metabolic control system, IELs modulate enteroendocrine activity by acting as gatekeepers that limit the bioavailability of GLP-1. Although the function of IELs may prove advantageous when food is scarce, present-day overabundance of diets high in fat and sugar renders this metabolic checkpoint detrimental to health.