The mediation effect (indirect effect) of SP-D was positive and statistically significant, with an estimate of 0.0045 (95% CI: 0.0009 to 0.01, p = 0.024), suggesting that SP-D partially mediates the relationship between smoking and T2DM incidence. This evidence concerns the gene SFTPD and type 2 diabetes mellitus.