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, CGAS is linked to nasopharyngeal carcinoma.