While LDSC and MR analyses showed no genetic correlation between IBD and CRC, mediation analyses revealed that C-reactive protein (CRP) and neutrophil-to-lymphocyte ratio (NLR) significantly mediated 10.41% and 9.97% of the IBD–CRC association, respectively. Here, CRP is linked to inflammatory bowel disease.