BackgroundCorosolic acid is a pentacyclic triterpene acid with hypoglycemic, anti-inflammatory, and anti-cancer effects. However, its potential targets in hepatocellular carcinoma (HCC) are unknown, hindering clinical utilization.MethodsDifferentially expressed proteins of the Bel-7404 cell line were identified with tandem mass tag analysis and differentially expressed genes (DEGs) of an HCC TCGA dataset using bioinformatics. Gene functions and pathways were inferred using the DAVID database. Online databases were used to establish P4HA2 expression in HCC (GEPIA2) and its relationship with patient survival (UALCAN and The Human Protein Atlas), the association between P4HA2 expression and immune cell infiltration (TIMER2), and DNA methylation of the P4HA2 gene (MethSurv). Cell proliferation, cell cycle, and cell death were assessed with PI and SYTOX-Green staining, CCK-8, and colony formation assays. Protein expression levels were detected by Western blotting.ResultsA total of 44 differentially expressed proteins and 4498 DEGs were identified. Four genes whose proteins were also found in the differential protein profile but with opposing expressions were selected as candidate targets. The candidate gene prolyl 4-hydroxylase subunit alpha 2 (P4HA2) was recognized as the only potential target due to its high expression in public datasets, association with poor patient survival, and relation to immune cell infiltration in HCC tissues. Moreover, the DNA methylation status in 4 CpG islands of the P4HA2 gene correlated with a poor prognosis. Furthermore, corosolic acid treatment inhibited the proliferation of HCC cell lines Bel-7404 and HepG2 in a dose-dependent manner, caused G2/M phase cell cycle arrest, and promoted cell death. In addition, the treatment reduced P4HA2 protein levels.ConclusionOur results indicate that P4HA2 is a potential target of corosolic acid. Thus, they contribute to understanding molecular changes in HCC after corosolic acid treatment and facilitate finding new treatment regimens.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12906-023-04008-6.