Industrialisation came to Denmark in the second half of the 19th century. The nation's first railways were constructed in the 1850s, and improved communications and overseas trade allowed industry to develop in spite of Denmark's lack of natural resources. Trade unions developed, starting in the 1870s. There was a considerable migration of people from the countryside to the cities, and Danish agriculture became centred on the export of dairy and meat products.