GO:0004655: porphobilinogen synthase activity
Catalysis of the reaction: 2 5-aminolevulinate = 2 H(2)O + H(+) + porphobilinogen.