Acute intermittent porphyria (AIP) is the most common of the acute hepatic porphyrias, caused by decreased activity of hydroxymethylbilane synthase (HMBS). This evidence concerns the gene HMBS and autoimmune pancreatitis.