These findings suggest that TRIM21 may be a promising novel target for treating type 2 diabetes mellitus. Here, TRIM21 is linked to type 2 diabetes mellitus.