HMBS and acute intermittent porphyria: Acute intermittent porphyria (AIP) is caused by mutations in the gene encoding hydroxymethylbilane synthase (HMBS), a key enzyme in the heme biosynthesis pathway.