The aim of this study was to investigate whether SP-D mediates the effects of smoking or air pollution exposure on T2DM risk in the Spanish adult population. This evidence concerns the gene SFTPD and type 2 diabetes mellitus.