Following growing dissatisfaction with the union in Norway, the parliament unanimously declared its dissolution on 7 June 1905. This unilateral action met with Swedish threats of war. A plebiscite on 13 August confirmed the parliamentary decision. Negotiations in Karlstad led to agreement with Sweden on 23 September and mutual demobilization. Both parliaments revoked the Act of Union 16 October, and the deposed king Oscar II of Sweden renounced his claim to the Norwegian throne and recognized Norway as an independent kingdom on 26 October. The Norwegian parliament offered the vacant throne to Prince Carl of Denmark, who accepted after another plebiscite had confirmed the monarchy. He arrived in Norway on 25 November 1905, taking the name Haakon VII.