There were U-shaped associations between dietary GI and CF and T2DM risk (both P-nonlinear < 0.0001), and T2DM risk was lowest when dietary GI was 72.85 (71.40, 74.05) and CF was 20.55 (17.92, 21.91), respectively (both P-log likelihood ratio < 0.0001). The gene discussed is CFTR; the disease is type 2 diabetes mellitus.