The Industrial Revolution is the technical and social transformation from handwork to machine industry beginning in the late eighteenth century — starting in the United Kingdom, spreading through the continent and North America in the nineteenth. Britain had the markets, the capital, the coal and iron and the institutions (patent protection included): cotton textiles mechanized first with the spinning jenny and the water frame, Watt's (Watt) improved steam engine gave the general power source, locomotives and steamships remade transport, and the factory system stood — by the 1830s-40s Britain was industrialized, 'the workshop of the world'. In the nineteenth century the revolution ran through France, Germany and North America, the railways netting the land, steel and chemicals rising, the German Empire overtaking in the second industrial revolution of electricity and the combustion engine. Industrialization drove urbanization and population growth, brought worker poverty and class division — socialism rising in answer — and drove the powers outward for markets and materials, Britain's Opium War against the Qing of 1840 its face. The Industrial Revolution fixed the global pattern of machine production and the world market.