BackgroundThe diverse and complex attributes of cancer have made it a daunting challenge to overcome globally and remains to endanger human life. Detection of critical cancer‐related gene alterations in solid tumor samples better defines patient diagnosis and prognosis, and indicates what targeted therapies must be administered to improve cancer patients' outcome.Materials and methodsTo identify genes that have aberrant expression across different cancer types, differential expressed genes were detected within the TCGA datasets. Subsequently, the DEGs common to all pan cancers were determined. Furthermore, various methods were employed to gain genetic alterations, co‐expression genes network and protein–protein interaction (PPI) network, pathway enrichment analysis of common genes. Finally, the gene regulatory network was constructed.ResultsIntersectional analysis identified UBE2C as a common DEG between all 28 types of studied cancers. Upregulated UBE2C expression was significantly correlated with OS and DFS of 10 and 9 types of cancer patients. Also, UBE2C can be a diagnostic factor in CESC, CHOL, GBM, and UCS with AUC = 100% and diagnose 19 cancer types with AUC ≥90%. A ceRNA network constructed including UBE2C, 41 TFs, 10 shared miRNAs, and 21 circRNAs and 128 lncRNAs.ConclusionIn summary, UBE2C can be a theranostic gene, which may serve as a reliable biomarker in diagnosing cancers, improving treatment responses and increasing the overall survival of cancer patients and can be a promising gene to be target by cancer drugs in the future.