Background: Molecular genetic testing is the most sensitive and specific method to confirm acute intermittent porphyria (AIP), a rare autosomal dominant disease, caused by Hydroxymethylbilane synthase (HMBS) gene mutation. This evidence concerns the gene HMBS and autoimmune pancreatitis.