Acute intermittent porphyria (AIP) is an autosomal dominant disease caused by the hepatic deficiency of porphobilinogen deaminase (PBGD) and the slowdown of heme biosynthesis. This evidence concerns the gene HMBS and autoimmune pancreatitis.