Synthetic genes were constructed based on the known sequence of the spider dragline silk protein MaSp 2. The genes had 8, 16, or 32 contiguous units of the consensus repeat sequence of the protein. These artificial genes were constructed using a strategy involving compatible but nonregenerable restriction sites, which allowed construction of very large inserts in a precisely controlled manner. This strategy should have general utility in the controlled construction of repetitive proteins composed of identical or different repeat units. The protein from the 16-unit repeat was produced in Escherichia coli at levels up to 10 mg/g wet wt of cells although yields of 1-2 mg/g were more typical. The protein was easily purified with high recovery using an affinity column. The purified protein had the predicted amino acid composition and N-terminal sequence after cleavage of a leader sequence. The methodology described will allow production of sufficient quantities of protein for basic structure/function studies including production of synthetic fibers.