The reaction catalysed by both types of enzymes involves the initial elimination of water to form an enamine intermediate (hence the enzyme's original classification as EC 4.2.1.13, L-serine dehydratase), followed by tautomerization to an imine form and hydrolysis of the C-N bond.