HMBS and acute intermittent porphyria: Acute intermittent porphyria (AIP) is caused by a partial deficiency of hydroxymethylbilane synthase and affects heme biosynthesis.