Background: Heart failure (HF) remains a huge medical burden worldwide. Pathological cardiac hypertrophy is one of the most significant phenotypes of HF. Several studies have reported that the TGF-β pathway plays a double-sided role in HF. Therefore, TGF-β-related genes (TRGs) may be potential therapeutic targets for cardiac hypertrophy and HF. However, the roles of TRGs in HF at the single-cell level remain unclear. Method: In this study, to analyze the expression pattern of TRGs during the progress of cardiac hypertrophy and HF, we used three public single-cell RNA sequencing datasets for HF (GSE161470, GSE145154, and GSE161153), one HF transcriptome data (GSE57338), and one hypertrophic cardiomyopathy transcriptome data (GSE141910). Weighted gene co-expression network analysis (WGCNA), functional enrichment analysis and machine learning algorithms were used to filter hub genes. Transverse aortic constriction mice model, CCK-8, wound healing assay, quantitative real-time PCR and western blotting were used to validate bioinformatics results. Results: We observed that cardiac fibroblasts (CFs) and endothelial cells showed high TGF-β activity during the progress of HF. Three modules (royalblue, brown4, and darkturquoize) were identified to be significantly associated with TRGs in HF. Six hub genes (TANC2, ADAMTS2, DYNLL1, MRC2, EGR1, and OTUD1) showed anomaly trend in cardiac hypertrophy. We further validated the regulation of the TGF-β-MYC-ADAMTS2 axis on CFs activation in vitro. Conclusions: This study identified six hub genes (TANC2, ADAMTS2, DYNLL1, MRC2, EGR1, and OTUD1) by integrating scRNA and transcriptome data. These six hub genes might be therapeutic targets for cardiac hypertrophy and HF.