TRIM21 ameliorates hepatic glucose and lipid metabolic disorders in type 2 diabetes mellitus by ubiquitination of PEPCK1 and FASN. Here, TRIM21 is linked to diabetes mellitus.