An 11th-century warlord who fought for both Christian and Muslim rulers left behind a reputation that expanded into myth.