Acute intermittent porphyria (AIP) is an autosomal dominant acute porphyria which is caused by mutations in the gene encoding hydroxymethylbilane synthase (HMBS), the third enzyme in the heme biosynthesis pathway. The gene discussed is HMBS; the disease is autoimmune pancreatitis.