We constructed machine learning models for predicting TME subtypes of NPC patients based on 8 genes (LCK, CD247, FYN, ZAP70, SH2D1A, CD3D, CD3E, and CD3G). Here, FYN is linked to nasopharyngeal carcinoma.