Our observations uncover the mechanisms of reprogramming of macrophages in NPC and identify targeting USP7/TRIM24/SPLUNC1 axis as an effective immunotherapy for NPC. Here, TRIM24 is linked to nasopharyngeal carcinoma.