Background: Hepatocellular carcinoma (HCC) is one of the most common aggressive malignancies with increasing incidence worldwide. The oncogenic roles of transcription factors (TFs) were increasingly recognized in various cancers. This study aimed to develop a predicting signature based on TFs for the prognosis and treatment of HCC.Methods: Differentially expressed TFs were screened from data in the TCGA-LIHC and ICGC-LIRI-JP cohorts. Univariate and multivariate Cox regression analyses were applied to establish a TF-based prognostic signature. The receiver operating characteristic (ROC) curve was used to assess the predictive efficacy of the signature. Subsequently, correlations of the risk model with clinical features and treatment response in HCC were also analyzed. The TF target genes underwent Gene Ontology (GO) function and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analyses, followed by protein-protein-interaction (PPI) analysis.Results: A total of 25 differentially expressed TFs were screened, 16 of which were related to the prognosis of HCC in the TCGA-LIHC cohort. A 2-TF risk signature, comprising high mobility group AT-hook protein 1 (HMGA1) and MAF BZIP transcription factor G (MAFG), was constructed and validated to negatively related to the overall survival (OS) of HCC. The ROC curve showed good predictive efficiencies of the risk score regarding 1-year, 2-year and 3-year OS (mostly AUC >0.60). Additionally, the risk score independently predicted OS for HCC patients both in the training cohort of TCGA-LIHC dataset (HR = 2.498, p = 0.007) and in the testing cohort of ICGC-LIRI-JP dataset (HR = 5.411, p < 0.001). The risk score was also positively correlated to progressive characteristics regarding tumor grade, TNM stage and tumor invasion. Patients with a high-risk score were more resistant to transarterial chemoembolization (TACE) treatment and agents of lapatinib and erlotinib, but sensitive to chemotherapeutics. Further enrichment and PPI analyses demonstrated that the 2-TF signature distinguished tumors into 2 clusters with proliferative and metabolic features, with the hub genes belonging to the former cluster.Conclusion: Our study identified a 2-TF prognostic signature that indicated tumor heterogeneity with different clinical features and treatment preference, which help optimal therapeutic strategy and improved survival for HCC patients.