Here, we show that ACAT inhibition has antiviral activity against hepatitis B (HBV), as well as boosting protective anti-HBV and anti-hepatocellular carcinoma (HCC) T cells. Here, ACAT1 is linked to hepatocellular carcinoma.