Bulk and single-cell transcriptomic data from public databases were utilized to perform pan-cancer analysis for mining the oncogenic potential of PTPN11, accompanied by functional enrichment, immune infiltration, and drug molecular docking analyses. This evidence concerns the gene PTPN11 and cancer.