GO:0004122: cystathionine beta-synthase activity
Catalysis of the reaction: L-serine + L-homocysteine = cystathionine + H2O.