The pylorus controls the flow between a reservoir dedicated to mechanical and chemical digestion (the stomach) and a conduit dedicated to the absorption of nutrients (the intestines). The pylorus adjusts gastric outflow resistance to physiological needs. It allows the outflow of isotonic fluids yet selectively retains particles too large for delivery to the intestines and in concert with the antrum further processes them (gastric sieving). Unlike most gut sphincters, the pylorus, at least of man, maintains a patent lumen most of the time. It only intermittently becomes a tightly closed barrier that arrests all flow out of and into the stomach. The geometry of the pylorus changes dramatically from the relaxed open state to closure. Pyloric closure involves contraction of its proximal and distal muscle loops, and occlusion of its lumen by mucosal folds. Current studies that combine pressure recordings with imaging by magnetic resonance imaging or ultrasound and fluid-mechanical analysis shed new light on the role of the pylorus in gastric emptying and digestion. Much has been learned in recent years on the innervation of the normal pylorus particularly from studies on infantile hypertrophic stenosis, and attempts are being made to treat gastroparesis by interventions on the pylorus.