In the Peninsular War, Arthur Wellesley, 1st Duke of Wellington, renewed the Anglo-Portuguese advance into Spain just after New Year in 1812, besieging and capturing the fortified towns of Ciudad Rodrigo, Badajoz, and in the Battle of Salamanca (which was a damaging defeat of the French). As the French regrouped, the Anglo-Portuguese entered Madrid and advanced towards Burgos, before retreating all the way to Portugal when renewed French concentrations threatened to trap them. As a consequence of the Salamanca campaign, the French were forced to end their long siege of Cadiz and to permanently evacuate the provinces of Andalusia and Asturias.