After Wellington's decisive defeat of King Joseph at Vitoria,
While Wellington concentrated his efforts on capturing the strategically important port of San Sebastián, he sent 11,000 men under the Irish-Spanish General O'Donnell to blockade Pamplona.
Having rapidly rebuilt and reorganised his forces after their defeat, the French under Marshal Soult launched an attack towards Pamplona through the passes of Maya and Roncesvalles.
The French force at Roncesvalles consisted of 40,000 men and 8 mountain guns under Generals Reille and Clausel. The pass was defended by the British 4th Division commanded by Major-General Galbraith Lowry Cole and was helped by the Portuguese 4/10 brigade
The French attacked from Saint-Jean-Pied-de-Port
By 14:00 Cole brought up three more brigades as reinforcements. However around 17:00 a dense fog descended over the battlefield, just as the Portuguese 4/10 brigade repelled French attacks in the Val de Baigorry. Cole, despite orders to the contrary, ordered his troops to retreat towards Pamplona.

The Allied forces regrouped and made a stand near the village of Sorauren
Later Wellington admitted that splitting his forces in order to besiege both San Sebastián and Pamplona simultaneously was "one of the greatest faults he ever committed in war".