We found that the association of diabetes with colorectal cancer risk was modified by variants located in the SLC30A8 gene. Here, SLC30A8 is linked to colorectal cancer.