Napoleonic wars, which drove Napoleon out of Germany. The final stage of the War of the Sixth Coalition, the defense of France in 1814, saw the French Emperor temporarily repulse the vastly superior armies in the Six Days Campaign. Ultimately, the Allies occupied Paris, forcing Napoleon to abdicate and restoring the Bourbons. Napoleon was exiled to Elba. Also in 1814, Denmark–Norway was defeated by Great Britain and Sweden and had to cede the territory of mainland Norway to the King of Sweden at the Treaty of Kiel. Napoleon shortly returned from exile, landing in France on March 1, 1815, marking the War of the Seventh Coalition, heading toward Paris while the Congress of Vienna was sitting. On March 13, seven days before Napoleon reached Paris, the powers at the Congress of Vienna declared him an outlaw; four days later the United Kingdom, Russia, Austria and Prussia, members of the Seventh Coalition, bound themselves to put 150,000 men each into the field to end his rule. This set the stage for the last conflict in the Napoleonic Wars, the defeat of Napoleon at the Battle of Waterloo, the restoration of the French monarchy for the second time and the permanent exile of Napoleon to the distant island of Saint Helena, where he died in May 1821. Spanish American wars of independence Spain in the 1810s was a country in turmoil. Occupied by Napoleon from 1808 to 1814, a massively destructive "war of independence" ensued, driven by an emergent Spanish nationalism. Already in 1810, the Caracas and Buenos Aires juntas declared their independence from the Bonapartist government in Spain and sent ambassadors to the United Kingdom. The British blockade against Spain had also moved most of the Latin American colonies out of the Spanish economic sphere and into the British sphere, with whom extensive trade relations were developed. The remaining Spanish colonies had operated with virtual independence from Madrid after their pronouncement against Joseph Bonaparte. The Spanish government in exile (Cortes of Cádiz) created the first modern Spanish constitution. Even so, agreements made at the Congress of Vienna (where Spain was represented by Pedro Gómez Labrador, Marquis of Labrador) would cement international support for the old, absolutist regime in Spain. King Ferdinand VII, who assumed the throne after Napoleon was driven out of Spain, refused to agree to the liberal Spanish Constitution of 1812 on his accession to the throne in 1814.