A machine invented by Eli Whitney 1794 to mechanically strip and separate the cotton fibre from the seed.  Ginning is normally done in or near the field where the cotton is grown and before it is transported in bales to the mill.