Throughout the 19th century, Malta benefited from increased defence spending by Britain, particularly from the development of the dockyards and the harbour facilities. The Crimean War and the opening of the Suez Canal further enhanced Malta's importance as a supply station and as a naval base. Prosperity brought with it a dramatic rise in the population, from 114,000 in 1842, to 124,000 in 1851, 140,000 in 1870, and double that amount by 1914. Malta became increasingly urbanized, with the majority of the population inhabiting the Valletta and the Three Cities. Malta's fortunes waned during times of peace in the early 20th century, and again after World War II, leading to massive waves of emigration.