Eli Whitney invented a cotton gin. It was an improvement on the roller gins of the time in that it separated seeds from fibers faster and more easily. But his greater achievement was, arguably, the development of interchangeable parts.