Overall, our study shed light on the upregulation of PTPN1 with advanced stage and poor prognosis in liver cancer and revealed PTPN1 (PTP1B) as a potential immunotherapy target due to its close association with immune-related pathways, immune checkpoints, and infiltrating T cells. The gene discussed is PTPN1; the disease is liver cancer.