Background: An association between diverticulitis and colon cancer has been proposed. The evidence is conflicting, and the guidelines differ regarding recommended follow-up with colonoscopy after an episode of diverticulitis. To guide regimes for follow-up, this study aimed to investigate if patients with diverticulitis have an increased risk of colon cancer. Methods: This study is reported according to the RECORD statement. We performed a cohort study with linked data from nationwide Danish registers. The inclusion period was 1997-2009, and the complete study period was 1995-2013. The primary outcome was the risk of developing colon cancer estimated using a Cox regression analysis with time-varying covariates. We performed a sensitivity analysis on a cohort of people with prior colonoscopies, comparing the risk of colon cancer between the diverticulitis group and the control group. Results: We included 29,173 adult males and females with diverticulitis and 145,865 controls matched for sex and age. The incidence proportion of colon cancer was 2.1% (95% confidence interval (CI) 1.9-2.3) in the diverticulitis group and 1.5% (95% CI 1.4-1.5) in the matched control group (hazard ratio 1.6; 95% CI 1.5-1.8). The risk of having a colon cancer diagnosis was significantly increased in the first six months after inclusion (hazard ratio 1.7; 95% CI 1.5-1.8), and hereafter there was a lower risk in the diverticulitis group compared with controls (hazard ratio 0.8; 95% CI 0.7-0.9). This protective effect lasted eight years. The increased risk of colon cancer during the first six months after diverticulitis was also found in the cohort with prior colonoscopies. Conclusions: The risk of a colon cancer diagnosis was significantly increased for patients with diverticulitis 0-6 months after the diagnosis of diverticulitis. Hereafter, we found a protective effect of diverticulitis until eight years later, possibly due to a screening effect. We recommend a follow-up colonoscopy after the first diagnosis of diverticulitis.