The association between the smoking quantity and type 2 diabetes was mediated by CRP, which accounted for 50.77% of the association. The gene discussed is CRP; the disease is type 2 diabetes mellitus.