In our study, we identified HDAC2 as a crucial regulator capable of modulating autophagy in HCC through a combination of database screening, in vitro experiments, and in vivo validations. This evidence concerns the gene HDAC2 and hepatocellular carcinoma.