TRIM21 prevented NPC cell apoptosis in vitro and in vivo. Here, TRIM21 is linked to nasopharyngeal carcinoma.