Knockout of TRIM21 modulates the cGAS/STING cytosolic DNA sensing pathway, potentiates the antigen-presenting capacity of NPC cells, and activates cytotoxic T cell-mediated antitumour immunity in response to radiation. Here, TRIM21 is linked to nasopharyngeal carcinoma.