A method of producing a target nucleic acid having a predefined sequence, the method comprising: providing a plurality of oligonucleotides, wherein each of the plurality of oligonucleotides is single-stranded and comprises a central sequence and a flanking sequence, wherein the central sequences of the plurality of oligonucleotides when assembled together form the target nucleic acid, and wherein each flanking sequence comprises a restriction enzyme recognition sequence and a primer binding site; amplifying the plurality of oligonucleotides using primers that bind to the primer binding site of each of the flanking sequences to form double-stranded oligonucleotides; cleaving the primer binding sites from the amplified double-stranded oligonucleotides to form blunt-ended oligonucleotides using a restriction enzyme that recognizes the restriction enzyme recognition sequence; melting the blunt-ended oligonucleotides to form single-stranded oligonucleotides; annealing the melted single-stranded oligonucleotides to form a plurality of cohesive-end double-stranded nucleic acid fragments that together comprises the target nucleic acid, wherein each of the plurality of cohesive-end double-stranded nucleic acid fragments has two different and non-complementary overhangs, and wherein an overhang of a first cohesive-end double-stranded nucleic acid fragment is designed to be uniquely complementary to an overhang of a second cohesive-end double-stranded nucleic acid fragment; and assembling the plurality of cohesive-end double-stranded nucleic acid fragments to form a linear nucleic acid arrangement, wherein the linear arrangement comprises the target nucleic acid having a predefined sequence. providing a plurality of oligonucleotides, wherein each of the plurality of oligonucleotides is single-stranded and comprises a central sequence and a flanking sequence, wherein the central sequences of the plurality of oligonucleotides when assembled together form the target nucleic acid, and wherein each flanking sequence comprises a restriction enzyme recognition sequence and a primer binding site; amplifying the plurality of oligonucleotides using primers that bind to the primer binding site of each of the flanking sequences to form double-stranded oligonucleotides; cleaving the primer binding sites from the amplified double-stranded oligonucleotides to form blunt-ended oligonucleotides using a restriction enzyme that recognizes the restriction enzyme recognition sequence; melting the blunt-ended oligonucleotides to form single-stranded oligonucleotides; annealing the melted single-stranded oligonucleotides to form a plurality of cohesive-end double-stranded nucleic acid fragments that together comprises the target nucleic acid, wherein each of the plurality of cohesive-end double-stranded nucleic acid fragments has two different and non-complementary overhangs, and wherein an overhang of a first cohesive-end double-stranded nucleic acid fragment is designed to be uniquely complementary to an overhang of a second cohesive-end double-stranded nucleic acid fragment; and assembling the plurality of cohesive-end double-stranded nucleic acid fragments to form a linear nucleic acid arrangement, wherein the linear arrangement comprises the target nucleic acid having a predefined sequence.