Manchester and Salford. Until the mid-18th century, Crompton's textile sector had been closely linked with that of Rochdale and Saddleworth in the north and east; it was a woollen manufacturing district. However, as the demand for cotton goods increased, Crompton mirrored developments in Oldham and Manchester in the south and southwest, importing raw cotton and making cotton cloth. To ensure that the woollen trade was kept buoyant, a law existed from 1675 to 1814 to encourage Shaw and Crompton's wool production. It required that the deceased were to be buried in woollen garments. In the second half of the 18th century, the technology of cotton-spinning machinery improved, and the need for larger buildings to house bigger, better and more efficient equipment became apparent. The profitability of cotton spinning meant that open land that had been used for farming since antiquity, was utilised for purpose-built weavers' cottages. Larger buildings were still desired, and construction of two water powered cotton factories (two or three times the size of a cottage) can be traced to 1782. The construction of more mills followed—ten by 1789—facilitating a process of urbanisation and socioeconomic transformation in the region; the population moved away from farming, adopting employment in the factory system. The introduction of the factory system led to an increase of the township's population; from 872 in 1714 to 3,500 in 1801, mostly as a result of an influx of people from Yorkshire and Lancashire looking for employment in the cotton mills. Power looms introduced in the early 19th century put an end to the last remnants of the domestic system in Crompton, but not without resistance. Weavers and spinners were paid according to the amount of cloth they produced; independent hand loom weavers saw a drop in their income, and could not compete with the mechanised mass production that was gathering pace in the township. Luddites rioted in the township in 1826, smashing 24 power looms at Clegg's mill at High Crompton in protest against their worsening standard of living. Crompton's damp climate provided the ideal conditions for cotton spinning to be carried out without the cotton drying and breaking, and newly developed 19th century mechanisation optimised cotton spinning for mass production for the global market. When suitable land in nearby Oldham (then the largest and most productive mill town in the world) had become scarce in the 1860s, there was a mill building boom in