Our study found that the lack of CD8+ T cells in the immune microenvironment of pancreatic cancer is the most significant risk factor for its poor prognosis, and cancer cells may inhibit CD8+ T cell infiltration through CA9 related mechanism, which provides new ideas for exploring pancreatic cancer immune escape pathways and immune targeted therapy. This evidence concerns the gene CD8A and cancer.