Objective To analyze the clinical value of CT and MRI for the diagnosis of nasopharyngeal carcinoma(NPC).Methods Ninety-eight cases of suspected nasopharyngeal cancer admitted to Wenshang County People's Hospital from January 2020 to January 2024 were selected as the objects of this study,and all patients were examined by CT and MRI,and the results of the pathological examination were used as the gold standard for diagnosis,so as to evaluate the diagnostic value of CT and MRI for nasopharyngeal cancer.Results Pathological examination revealed,Eighty patients were diagnosed with nasopharyngeal carcinoma,The CT examination indicated that 70 patients had nasopharyngeal carcinoma;The MRI examination suggested that 76 patients had nasopharyngeal carcinoma.The accuracy of MRI for NPC diagnosis(91.84%)was higher than CT diagnosis(79.59%)(P<0.05).Sensitive(92.50%)was higher than CT diagnosis(81.25%);CT and MRI in specificity of NPC was significant non-difference(P>0.05).CT and MRI showed significant difference in cavernous sinus and inferior temporal fossa(P<0.05).The examination of nasopharyngeal carcinoma at the base of the skull shows that,the detection rate of nasopharyngeal carcinoma on CT was 31.67%,lower than that on MRI,which was 50.00%(P<0.05).Conclusion However,NPC invasion can be observed in both CT and MRI examinations,but MRI examination is more accurate and sensitive than CT examination for NPC diagnosis.