AIP results from a partial deficiency of hydroxymethylbilane synthase (HMBS; EC 4.3.1.8), also named porphobilinogen deaminase (PBGD), the third enzyme in the heme biosynthetic pathway. Here, HMBS is linked to autoimmune pancreatitis.