Acute intermittent porphyria (AIP) is a rare metabolic disorder that is characterized by partial deficiency of the enzyme hydroxymethylbilane synthase (also known as porphobilinogen deaminase). This enzyme deficiency can result in the accumulation of porphyrin precursors in the body.