A renewed Allied effort in 1710 led to victories at Almenar and Saragossa in July and August and the capture of Madrid in September. However, lack of support from the local population meant Charles entered an almost deserted city and the Allies were effectively isolated when Portuguese forces were prevented from crossing into Spain. In November, they left Madrid for Catalonia in two separate detachments, Stanhope's division of 5,000 and one of 12,000 under the Austrian Starhemberg. At Brihuega on 9 December 1710, Stanhope was taken by surprise and forced to surrender to an army led by Louis Joseph, Duke of Vendôme. Vendôme followed this up the next day by defeating Starhemberg at Villaviciosa; these defeats were a devastating setback to Allied ambitions in Spain.