Coeliac disease is an inflammatory disorder with autoimmune features that is characterized by destruction of the intestinal epithelium and remodelling of the intestinal mucosa following the ingestion of dietary gluten. A common feature of coeliac disease and many organ-specific autoimmune diseases is a central role for T cells in causing tissue destruction. In this Review, we discuss the emerging hypothesis that, in coeliac disease, intestinal tissue inflammation--induced either by infectious agents or by gluten--is crucial for activating T cells and eliciting their tissue-destructive effector functions.