of the French forces, defeating the Spanish armies before returning to France. Jean-de-Dieu Soult drove the British out of Spain in the Battle of Corunna in January 1809. In the beginning of 1809, the French client kingdom of Spain, ruled by Napoleon's brother Joseph Bonaparte, controlled much of Spain and northern Portugal. British and Portuguese forces under Arthur Wellesley launched new offensives from Spring 1809. Spanish regular armies including those led by generals Miguel Ricardo de Álava and Joaquín Blake continued to fight and guerrilla activity in the countryside made French operations hazardous. A significant French presence, numbering 250,000 in June 1809, remained in the peninsula throughout the War of the Fifth Coalition. The Napoleonic occupation of France's own ally Spain persuaded many in Austria that Napoleon could not be trusted and declaring war was the only way to prevent him from destroying the Habsburg monarchy. The Spanish guerrillas inspired popular resistance against Napoleon, and the Austrians hoped that French preoccupation in Spain would make it easier to defeat France. Austria plans for war After Austria was defeated in 1805, the nation spent three years reforming its army. Encouraged by the events in Spain, Austria sought another confrontation with France to avenge their defeats and regain lost territory and power. Austria lacked allies in central Europe; Russia, her main ally in 1805, made peace with Napoleon at Tilsit and was engaged in wars with erstwhile allies like Britain in the Anglo-Russian War (1807–12), Sweden in the Finnish War and the Ottoman Empire in the Russo-Turkish War (1806–1812). France tried to reinforce their relationship with Russia through the September–October 1808 Congress of Erfurt. Under the treaty Russia agreed to support France if it was attacked by Austria. In early 1809, Austrian minister Johann Philipp Stadion secured Russian Tsar Alexander I's agreement that the Russians would move slowly and "avoid every collision and every act of hostility" during any advance into Austria. At the same time, the French minister Charles Maurice de Talleyrand-Périgord secretly advised Alexander to resist France. During the War of the Fifth Coalition, Russia remained neutral even though they were allied to France. Austria hoped Prussia would assist them in a war with France but a letter from Prussian minister Baron von Stein discussing the negotiations was intercepted by French agents and published in the Le Moniteur Universel on 8 September. Napoleon confiscated Stein's holdings in Westphalia and pressured