Prior to the mid-nineteenth century, the majority of Americans either made their own clothing, or if they were wealthy, purchased "tailor-made" customized clothing. By the 1820s, however, an increasing number of ready-made garments of a higher quality were being produced for a broader market. The production of ready-made clothing, which continued to grow, completed its transformation to an "industrialized" profession with the invention of the sewing machine in the 1850s. The need for thousands of ready-made soldiers' uniforms during the American Civil War helped the garment industry to expand further.