Here, we identify tripartite motif-containing protein 21 (TRIM21), a class IV TRIM family member, as a pivotal regulator of hepatic metabolism in T2DM for the first time. Here, TRIM21 is linked to type 2 diabetes mellitus.