The industrial revolution caused unspeakable misery both in England and in America … In the Lancashire cotton mills (from which Marx and Engels derived their livelihood), children worked from 12 to 16 hours a day; they often began working at the age of six or seven. Children had to be beaten to keep them from falling asleep while at work; in spite of this, many failed to keep awake and were mutilated or killed. Parents had to submit to the infliction of these atrocities upon their children, because they themselves were in a desperate plight. Craftsmen had been thrown out of work by the machines; rural labourers were compelled to migrate to the towns by the Enclosure Acts, which used Parliament to make landowners richer by making peasants destitute; trade unions were illegal until 1824; the government employed agents provocateurs to try to get revolutionary sentiments out of wage-earners, who were then deported or hanged. Such was the first effect of machinery in England.