The British, under the command of Sir Arthur Wellesley, invaded Spain from Portugal in 1810. A Spanish force, pulled together from the remnants of the Spanish army and volunteer fighters, joined him and successfully defeated the French under the personal command of Joseph Bonaparte at the Battle of Talavera. For his victory, Wellesley was made Duke of Wellington, although not long after Talavera he was forced to retreat into Portugal once more. Although Wellington took Madrid on 6 August 1812, he retreated not long after back to Portugal. With the stretched and harassed French forces depleted when Napoleon redeployed troops for what would be a disastrous offensive against Russia, [[saw an opportunity and attacked again in 1813. At the [[Battle of Vitoria]], on 21 June 1813, the French under the personal command of King Joseph were again defeated, and were subsequently forced as far back as the [[Pyrenees]] in early July. Fighting continued in the mountains throughout the winter, though in the spring of 1814 the Allies advanced into southern France.