The Second Schleswig War resolved the Schleswig–Holstein Question violently, by forcing the king of Denmark to renounce (on 1 August 1864) all his rights in the duchies in favour of Emperor Franz Joseph I of Austria and King William I of Prussia. By Article XIX of the definitive Treaty of Vienna signed on October 30, 1864, a period of six years was allowed during which the inhabitants of the duchies might opt for Danish nationality and transfer themselves and their goods to Denmark; and the rights pertaining to birth in the provinces were guaranteed to all, whether in the kingdom or the duchies, who had been entitled to those rights at the time of the exchange of ratifications of the treaty.