Acute intermittent porphyria (AIP) is an autosomal dominant inherited disease with low clinical penetrance, caused by mutations in the hydroxymethylbilane synthase (HMBS) gene, which encodes the third enzyme in the haem biosynthesis pathway. The gene discussed is HMBS; the disease is autoimmune pancreatitis.