BackgroundT lymphocytes, integral to the adaptive immune system, wield pivotal influence in bolstering anti-tumor responses, and are strictly regulated by ubiquitination modification. The objective of this investigation was to devise a novel prognostic and immunotherapeutic efficacy predictor for hepatocellular carcinoma patients utilizing T cell-related ubiquitination genes (TCRUG).MethodThe single-cell RNA sequencing (scRNA-seq) data and bulk RNA data of HCC patients are derived from the GEO database and TCGA database. Based on the processing of scRNA-seq, T cell marker genes are obtained and TCRUG is obtained. Further combined with WGCNA, differential analysis, univariate Cox regression analysis, LASSO analysis, and multivariate Cox regression analysis to filter and screen TCRUG. Finally construct a riskscore for predicting the prognosis of HCC patients, the predictive effect of which is validated in the GEO dataset. In addition, we also studied the correlation between riskscore and immunotherapy efficacy. Finally, the oncogenic role of UBE2E1 in HCC was explored through various in vitro experiments.ResultBased on patients’ scRNA-seq data, we finally obtained 3050 T cell marker genes. Combined with bulk RNA data and clinical data from the TCGA database, we constructed a riskscore that accurately predicts the prognosis of HCC patients. This riskscore is an independent prognostic factor for HCC and is used to construct a convenient column chart. In addition, we found that the high-risk group is more suitable for immunotherapy. Finally, the proliferation, migration, and invasion abilities of HCC cells significantly decreased after UBE2E1 expression reduction.ConclusionThis study developed a riskscore based on TCRUG that can accurately and stably predict the prognosis of HCC patients. This riskscore is also effective in predicting the immune therapy response of HCC patients.