Mediation analysis showed that increased homeostasis model assessment - insulin resistance HOMA-IR, triglycerides (TG), and serum xanthine oxidase (XO) activity could account for 8.5, 14.7, and 12.1% of the total effects of serum retinol on type 2 diabetes, respectively. Here, XDH is linked to type 2 diabetes mellitus.