The final phases of the War of the Spanish Succession demonstrated that the Allies could not maintain the Archduke Charles in Spain just as surely as France could not retain the entire Spanish inheritance for Philip V. The Allies were definitively expelled from central Spain by the Franco-Spanish victories at the Battles of Villaviciosa and Brihuega in 1710. French forces elsewhere remained obdurate despite their defeats. The Allies suffered a Pyrrhic victory at the Battle of Malplaquet with 21,000 casualties, twice that of the French. Eventually, France recovered its military pride with the decisive victory at Denain in 1712.