Particularly, a decrease in porphobilinogen deaminase, involved in the third step of heme biosynthesis, leads to acute intermittent porphyria (AIP). This evidence concerns the gene HMBS and autoimmune pancreatitis.