Sweden and Norway or Sweden–Norway (Swedish: Svensk-norska unionen; Norwegian: Den svensk-norske union), officially the United Kingdoms of Sweden and Norway, was a personal union of the separate kingdoms of Sweden and Norway under a common monarch and common foreign policy from 1814 to 1905, before Sweden accepted Norway's leaving the union.
The states kept separate constitutions, laws, legislatures, administrations, state churches, armed forces, and currencies; the kings mostly resided in Stockholm, where foreign diplomatic representations were located. The Norwegian government was presided over by viceroys: Swedes until 1829, Norwegians until 1856. That office was later vacant and then abolished in 1873. Foreign policy was conducted through the Swedish foreign ministry until the dissolution of the union in 1905.
Norway had been in a closer union with Denmark, but Denmark-Norway's alliance with Napoleonic France caused the United Kingdom and Russia to consent to Sweden's annexation of the realm as compensation for the loss of Finland in 1809 and as a reward for joining the alliance against Napoleon. By the 1814 Treaty of Kiel, the King of Denmark-Norway was forced to cede Norway to the King of Sweden. But Norway refused to submit to the treaty provisions, declared independence, and convoked a constituent assembly at Eidsvoll.