Eli Whitney (1765–1825) invented the cotton gin and also developed and popularized the use of interchangeable parts in mass production.