We aimed to examine whether a specific dietary pattern reflecting inflammation was associated with a risk of colorectal cancer and whether IL-17F genetic variant altered this association. Here, IL17F is linked to colorectal cancer.