In the process of spinning ,fibres from a mass of cotton are drawn out and twisted. This brings the tiny fibres together to form long and twisted threads called yarn. ... Spinning of yarn on a large scale is done by using spinning machines in mills or factories.
This source is from https://classnotes.org.in/class-6/science/fibre-to-fabric/making-of-fabric/