In 1805 the War of the Third Coalition broke out, with Britain joined by Russia, Austria and Sweden. Napoleon defeated the Austrians at Ulm (1805) and finally at Austerlitz in 1805 (known as the battle of the three Emperors). Once again the coalition reformed this time with Prussia but without Austria in 1806. Napoleon quickly moved against the Prussians and crushed them at the battle of Jena in 1806. By 1808 Napoleon was master of all Europe but he was now to begin a series of mistakes that would lead to his defeat. Dethroning King Charles IV of Spain he made his brother Joseph Bonaparte King, causing a revolt and what was to be known as a Guerrilla war in Spain. During the Peninsular war (1808-1813) the Spanish Guerillas aided by British troops under Wellington and Portuguese allies drove the French out and eventually invaded southern France. A fifth Coalition formed but the Austrians were defeated at the battle of Aspern and Wagram in 1809.