Spain occupation and liberation By mapyduque Dec 14, 1788 Carlos IV became king of Spain Period: Dec 14, 1788 to Dec 29, 1813 spanish independence war Oct 21, 1805 Trafalga battle France Vs Spain Oct 27, 1807 Treaty of Fontainebleau Between Spain and France May 2, 1808 Start the Spanish war of Independence People of Madrid rose up against the French occupation Jun 6, 1808 Joseph Bonaparte became the new Spanish king Jul 18, 1808 Battle of Bailén One of the Spanish victories against France Dec 28, 1810 The Central Council became the Regency Council/ Cortes Mar 19, 1812 Cortes of Cadiz approved the first Spanish Constitution This constitution is known as "La Pepa" Apr 17, 1813 End of the Spanish War of Independence