Résumé : Background & Aims: Acute intermittent porphyria (AIP), caused by heterozygous germline mutations of the heme synthesis pathway enzyme HMBS (hydroxymethylbilane synthase), confers a high risk of hepatocellular carcinoma (HCC) development. Yet, the role of HMBS in liver tumorigenesis remains unclear. Methods: Herein, we explore HMBS alterations in a large series of 758 HCC cases, including 4 patients with AIP. We quantify the impact of HMBS mutations on heme biosynthesis pathway intermediates and we investigate the molecular and clinical features of HMBS-mutated tumors. Results: We identify recurrent bi-allelic HMBS inactivation, both in patients with AIP acquiring a second somatic HMBS mutation and in sporadic HCC with 2 somatic hits. HMBS alterations are enriched in truncating mutations, in particular in splice regions, leading to abnormal transcript structures. Bi-allelic HMBS inactivation results in a massive accumulation of its toxic substrate porphobilinogen and synergizes with CTNNB1-activating mutations, leading to the development of well-differentiated tumors with a transcriptomic signature of Wnt/β-catenin pathway activation and a DNA methylation signature related to ageing. HMBS-inactivated HCC mostly affects females, in the absence of fibrosis and classical HCC risk factors. Conclusions: These data identify HMBS as a tumor suppressor gene whose bi-allelic inactivation defines a homogenous clinical and molecular HCC subtype. Lay summary: Heme (the precursor to hemoglobin, which plays a key role in oxygen transport around the body) synthesis occurs in the liver and involves several enzymes including hydroxymethylbilane synthase (HMBS). HMBS mutations cause acute intermittent porphyria, a disease caused by the accumulation of toxic porphyrin precursors. Herein, we show that HMBS inactivation is also involved in the development of liver cancers with distinct clinical and molecular characteristics.