Mechanistically, we identified a novel PA–SMARCA4–ZDHHC12 axis that increases ZDHHC12 expression, and we showed that ZDHHC12 palmitoylates and stabilizes HDAC8, which promotes HCC progression. Here, ZDHHC12 is linked to hepatocellular carcinoma.