Compared with the lowest quartiles, the hazard ratios (95% confidence intervals) of T2DM for the highest quartiles of IgG, IgE, IgM and IgA were 0.64 (0.48–0.85), 0.94 (0.72–1.23), 0.68 (0.50–0.92) and 1.62 (1.24–2.11) (P for trend was < 0.01, 0.84, 0.02 and < 0.0001), respectively, suggesting that serum IgG and IgM concentrations were inversely associated with the incidence of T2DM, and IgA levels were positively associated with the risk of T2DM in a general adult population. Here, IGHE is linked to type 2 diabetes mellitus.