Acute intermittent porphyria (AIP) is an autosomal dominant disorder caused by a partial deficiency of porphobilinogen deaminase (PBGD), the third enzyme in the heme biosynthetic pathway. Here, HMBS is linked to autoimmune pancreatitis.