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. The gene discussed is CRP; the disease is colorectal carcinoma.