In conclusion, the potential molecular mechanism of immune cell infiltration-related genes regulating NPC was explored; FCER2, KHDRBS2, and IGSF9 were identified as diagnostic markers related to immune cell infiltration in NPC for the first time; their relationship with immune regulatory factors was analyzed. Here, KHDRBS2 is linked to nasopharyngeal carcinoma.