But Soult occupied Chaves on 12 March, a defense of Braga was unsuccessful and the French cavalry forced entry into Porto by 29 March. Soult forces encountered a popular resistance in Porto, that included militia and local residents whom barricaded the streets. But Francisco da Silveira recovered Chaves and ultimately, it was Wellesley, again, at the head of the British-Portuguese forces who expelled the French from the north of the country. He was aided by William Carr Beresford, 1st Viscount Beresford and supported by a stronger Portuguese contingent, trained, equipped and command by British officers. The Anglo-Portuguese Army defeated Soult at the Second Battle of Porto, re-conquering the city of Porto on 29 May, and forcing the French retreat to Galicia. Wellesley intended to pursue the French, but with French forces crossing from the Spanish Extremadura, he moved his base to Abrantes. From here his forces then marched up the Tagus valley, entered Spain and won the victory at Talavera, after which he was made Duke of Wellington. He could not penetrate further, owing to Soult's forces joining Victor, to bar the way to Madrid, and so withdrew to Torres Vedras to plan for the defense against a third invasion by the French.