In the typical porphyrin biosynthesis pathway, four molecules of porphobilinogen are concatenated by carbons 2 and 5 of the pyrrole ring (adjacent to the nitrogen atom) into hydroxymethyl bilane by the enzyme porphobilinogen deaminase, also known as hydroxymethylbilane synthase.