His last offensives into Spain were turned back by Wellington in the Battle of the Pyrenees (Sorauren) and by General Manuel Freire's Spaniards at San Marcial. Pursued onto French soil, Soult was maneuvered out of several positions at Nivelle, Nive, and Orthez, before suffering what was technically a defeat at Wellington's hands at the Battle of Toulouse. He nevertheless inflicted severe casualties on Wellington and was able to stop him from trapping the French forces.