Cotton originated in India over 5,000 years ago. The cotton gin, invented in India in the 13th century and Eli Whitney's mechanical cotton gin in the US in the late 18th century, increased production efficiency. Cotton grows in tropical and subtropical regions worldwide, with the US, especially Texas, and India among the largest producers today. Cotton fiber goes through several processing steps from harvesting to finishing, including ginning, sorting, baling, carding and spinning. Cotton is a moderately strong fiber that is white or off-white in color and resistant to degradation by heat, sunlight and aging. It is attacked by acids, insects and microorganisms under certain conditions.