At the two successive Combats of El Bruc outside Barcelona, Schwarz's 4,000 troops were defeated by local Catalan militia, the "Miquelets" (also known as "sometents"). Guillaume Philibert Duhesme's Franco-Italian division of almost 6000 troops failed to storm Girona and was forced to return to Barcelona. 6000 French troops under Charles Lefebvre-Desnouettes attacked Zaragoza and were beaten off by José de Palafox y Melci's militia. Moncey's push to take Valencia ended in failure, with 1000 French recruits dying in an attempt to storm the city. After defeating Spanish counterattacks, Moncey retreated. At the Battle of Medina de Rioseco on 14 July, Bessières defeated Cuesta and Old Castile returned to French control. Blake escaped, but the Spaniards lost 2,200 men and thirteen guns. French losses were minimal at 400 men. Bessières's victory salvaged the French army's strategic position in northern Spain. Joseph entered Madrid on 20 July; and on 25 July he was crowned King of Spain. On 10 June, five French ships of the line anchored at Cádiz were seized by the Spanish. Dupont was disturbed enough to curtail his march at Cordoba, and then on 16 June to fall back to Andújar. Cowed by the mass hostility of the Andalusians, he broke off his offensive and was then defeated at Bailén, where he surrendered his entire Army Corps to Castaños.