Acute intermittent porphyria (AIP) is a low-penetrant genetic metabolic disease caused by a deficiency of hydroxymethylbilane synthase (HMBS) in the haem biosynthesis. This evidence concerns the gene HMBS and autoimmune pancreatitis.