British captured the entire Dano-Norwegian navy, burning most of the fleet and incorporating the remaining ships into the Royal Navy. The Dano-Norwegian navy was caught unprepared for any military operation and the British found the Dano-Norwegian navy still in dock after the winter season. The Dano-Norwegians were more concerned about preserving their continued neutrality and the entire Dano-Norwegian army was therefore gathered at Danevirke in the event of a French attack, leaving something undefended. The British attack of 1807 effectively forced the Dano-Norwegians into an alliance with the French, although without a fleet they could do little. Denmark–Norway was defeated and had to cede the Kingdom of Norway to the King of Sweden at the Treaty of Kiel. Norway's overseas possessions were kept by Denmark. But the Norwegians objected to the terms of this treaty, and a constitutional assembly declared Norwegian independence on 17 May 1814 and elected the Crown Prince Christian Frederik as king of independent Norway. Following a Swedish invasion, Norway was forced to accept a personal union between Sweden and Norway, but retained its liberal constitution and separate institutions, except for the foreign service. The union was dissolved in 1905. Culture Differences between Denmark and Norway After 1660, Denmark–Norway consisted of four formally separate parts (The Kingdom of Denmark, The Kingdom of Norway, The Duchy of Holstein and Duchy of Schleswig). Norway had its separate laws and some institutions, and separate coinage and army. Culturally and politically Denmark became dominant. While Denmark remained a largely agricultural society, Norway was industrialized from the 16th century and had a highly export-driven economy; Norway's shipping, timber and mining industries made Norway "the developed and industrialized part of Denmark-Norway" and an economic equal of Denmark. Denmark and Norway complemented each other and had a significant internal trade, with Norway relying on Danish agricultural products and Denmark relying on Norway's timber and metals. Norway was also the more egalitarian part of the twin kingdoms; in Norway the King (i.e. the state) owned much of the land, while Denmark was dominated by large noble landowners. Denmark had a serfdom-like institution known as Stavnsbånd which restricted men to the estates they were born on; all farmers in Norway on the other hand were free, could settle anywhere and were on average more affluent than Danish farmers. For many Danish people who had the possibility to leave Denmark proper, such as merchants and civil servants,