Our study suggests that not only clinical factors including heavy smoker, very low PD-L1 expression, multiple metastasis, and CAR index, but also fewer CD8+/PD-1+ TIL and more M2 macrophages in the tumor microenvironment are significantly associated with the occurrence of HPD in the patients with advanced/metastatic NSCLC receiving immunotherapy. The gene discussed is CD8A; the disease is non-small cell lung carcinoma.