Gene synthesis of leucine zipper genes based on blunt end ligation of ds DNA modules was performed in several ligation steps on magnetic beads. A 3'-phosphate, which was removed by T4 polynucleotide kinase after each ligation step, was used to guarantee orientation and single addition of newly added modules. Not depending on sequence complementarity the method appears well suited for the generation of combinatorial libraries of heterologous molecules.