There were 1413 differentially expressed genes between thyroid cancer and normal paracancerous tissues, among which 21 immune-related genes were prognostic factors with significant differences in expression; lasso risk model obtained AKAP12, APOC1, TIMP3, ADAMTS9, ANK2, HTRA3, SYNDIG1 , ADAMTS5 and DACT1 were nine prognostic factors. Here, ANK2 is linked to thyroid gland carcinoma.