•Elevated FGF21 predicts shorter OS and PFS in patients with ICI-treated HCC. This evidence concerns the gene FGF21 and hepatocellular carcinoma.