 As the price for this alliance, Alfonso VI had obtained Lisbon, Sintra and Santarém, but lost them in November 1094 when his son-in-law Raymond of Burgundy, responsible for defending these cities was defeated by the Almoravid army that had taken Badajoz shortly before.The only good news for Alfonso VI was the recovery of Valencia in June by El Cid who had defeated the Almoravid army that had advanced against him in the Battle of Cuarte on 21 October.This victory set the eastern border for about a decade.