To elucidate whether PTPN1 was related to immune infiltration cells in liver cancer, the TIMER database was used to analyze the correlation between the expression of PTPN1 and six types of immune infiltration cells, including B cell, CD8+ T cell, CD4+ T cell, macrophage, neutrophil, and dendritic cell. This evidence concerns the gene PTPN1 and liver cancer.