Many molecular, physiological and behavioural processes display distinct 24-hour rhythms that are directed by the circadian system. The master clock, located in the suprachiasmatic nucleus region of the hypothalamus, is synchronized or entrained by the light–dark cycle and, in turn, synchronizes clocks present in peripheral tissues and organs. Other environmental cues, most importantly feeding time, also synchronize peripheral clocks. In this way, the circadian system can prepare the body for predictable environmental changes such as the availability of nutrients during the normal feeding period. This Review summarizes existing knowledge about the diurnal regulation of gastrointestinal processes by circadian clocks present in the digestive tract and its accessory organs. The circadian control of gastrointestinal digestion, motility, hormones and barrier function as well as of the gut microbiota are discussed. An overview is given of the interplay between different circadian clocks in the digestive system that regulate glucose homeostasis and lipid and bile acid metabolism. Additionally, the bidirectional interaction between the master clock and peripheral clocks in the digestive system, encompassing different entraining factors, is described. Finally, the possible behavioural adjustments or pharmacological strategies for the prevention and treatment of the adverse effects of chronodisruption are outlined.