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. This evidence concerns the gene TRAT1 and type 2 diabetes mellitus.