Eli Whitney invented the cotton gin in 1793 to help improve the process of picking cotton. Whitney also had a lot of legal trouble in enforcing his patent.
Read more here , here, and [here.](https://www.archives.gov/education/lessons/cotton-gin-patent/)