Our study identifies SALL4 as a crucial regulator in YAP1-mediated HC-to-CCA malignant transformation and regenerative HC-to-CC conversion in a cholestasis model. Here, YAP1 is linked to cholangiocarcinoma.