Papillary thyroid carcinoma (PTC) prognosis may be deteriorated due to the metastases, and anoikis palys an essential role in the tumor metastasis. However, the potential effect of anoikis-related genes on the prognosis of PTC was unclear. The mRNA and clinical information were obtained from the cancer genome atlas database. Hub genes were identified and risk model was constructed using Cox regression analysis. Kaplan–Meier (K–M) curve was applied for the survival analysis. Immune infiltration and immune therapy response were calculated using CIBERSORT and TIDE. The identification of cell types and cell interaction was performed by Seurat, SingleR and CellChat packages. GO, KEGG, and GSVA were applied for the enrichment analysis. Protein-protein interaction network was constructed in STRING and Cytoscape. Drug sensitivity was assessed in GSCA. Based on bulk RNA data, we identified 4 anoikis-related risk signatures, which were oncogenes, and constructed a risk model. The enrichment analysis found high risk group was enriched in some immune-related pathways. High risk group had higher infiltration of Tregs, higher TIDE score and lower levels of monocytes and CD8 T cells. Based on scRNA data, we found that 4 hub genes were mainly expressed in monocytes and macrophages, and they interacted with T cells. Hub genes were significantly related to immune escape-related genes. Drug sensitivity analysis suggested that cyclin dependent kinase inhibitor 2A may be a better chemotherapy target. We constructed a risk model which could effectively and steadily predict the prognosis of PTC. We inferred that the immune escape may be involved in the development of PTC.