To determine whether ABCB1 is involved directly in T2DM pathogenesis or through lipid pathways, mediation analysis was carried out. Here, ABCB1 is linked to type 2 diabetes mellitus.