 He was defeated by El Cid, who was raiding his lands and those of his Muslim allies, at the Battle of Morella, probably in 1084.He perished in 1094 at the battle of Huesca, supposedly from an arrow while inspecting the walls of the Muslim stronghold.Sancho contracted his first marriage in , to Isabella (died ), daughter of Count Armengol III of Urgel.