A cotton gin is a machine that quickly and easily separates cotton fibers from their seeds, enabling much greater productivity than manual cotton separation. A modern mechanical cotton gin was created by American inventor Eli Whitney in 1793 and patented in 1794.