The causal mediation analysis revealed significant effects of smoking on T2DM incidence, mediated by SP-D. Here, SFTPD is linked to type 2 diabetes mellitus.