Summary Background The vagus nerve provides essential parasympathetic innervation to the gastrointestinal system and is known to have anti‐inflammatory properties. Aims To explore the relationship between vagotomy and the risk of inflammatory bowel disease (IBD) and its major categories: Crohn's disease (CD) and ulcerative colitis (UC). Methods A matched cohort comprising 15 637 patients undergoing vagotomy was identified through the Swedish Patient Register from 1964 to 2010.