Acute intermittent porphyria (AIP) is a rare disease caused by a deficiency of hydroxymethylbilane synthase (HMBS), the third enzyme of the heme-synthesis pathway. This evidence concerns the gene HMBS and autoimmune pancreatitis.