Background: PTPRD plays an indispensable role in the occurrence of multiple tumors. However, pan-cancer analysis is unavailable. The purpose of this research was to investigate the relationship between PTPRD and immunity and describe its prognostic landscape across various tumors. Methods: We explored expression profile, survival analysis, and genomic alterations of PTPRD based on the TIMER, GEPIA, UALCAN, PrognoScan, and cBioPortal database. The frequency of PTPRD mutation and its correlation with response to immunotherapy were evaluated using the cBioPortal database. The relationship between PTPRD and immune-cell infiltration was analyzed by the TIMER and TISIDB databases. A protein interaction network was constructed by the STRING database. GO and KEGG enrichment analysis was executed by the Metascape database.Results: A significant correlation between PTPRD expression and prognosis was found in various cancers. Aberrant PRPRD expression was closely related to immune infiltration. Importantly, the patients who harbored PTPRD mutation and received immune checkpoint inhibitors had worse overall survival, especially in non-small cell lung cancer and melanoma, and had a higher TMB score. Moreover, PTPRD mutation was involved in numerous biological processes, including immunological signaling pathways. Additionally, a PTPRD protein interaction network was constructed, and genes that interacted with PTPRD were identified. Functional enrichment analysis demonstrated that a variety of GO biological processes and KEGG pathways of PTPRD were primarily involved in the therapeutic mechanisms. Conclusions: These results revealed that PRPRD might function as a biomarker for prognosis and immune infiltration in cancers, throwing new light on cancer therapeutics.