Acute intermittent porphyria (AIP) is an autosomal dominant disorder of heme biosynthesis in the liver that is caused by the accumulation of toxic heme metabolites aminolevulinic acid (ALA) and porphobilinogen (PBG) due to a deficiency in the enzyme hydroxymethylbilane synthase (HMBS). This evidence concerns the gene HMBS and autoimmune pancreatitis.