Acute Intermittent Porphyria (AIP) is an inherited metabolic disorder resulting from haploinsufficiency of the hydroxymethylbilane synthase (HMBS) gene, which encodes porphobilinogen (PBG) deaminase (PBGD), the third enzyme in the heme synthesis pathway. The gene discussed is HMBS; the disease is autoimmune pancreatitis.