The autosomal dominantly inherited disease AIP (acute intermittent porphyria) is caused by mutations in HMBS [hydroxymethylbilane synthase; also known as PBG (porphobilinogen) deaminase], the third enzyme in the haem biosynthesis pathway. The gene discussed is HMBS; the disease is autoimmune pancreatitis.