The modern mechanical cotton gin was invented in the United States of America in 1793 by Eli Whitney (1765–1825). Whitney applied for a patent on October 28, 1793; the patent was granted on March 14, 1794, but was not validated until 1807. Whitney's patent was assigned patent number 72X.