Hisham II
Sulayman was however unable to conquer Toledo. In May 1010 Muhammad, who had reorganized his troops of "slave" mercenaries from all over Europe and had allied with Count Ramon Borrell of Barcelona, defeated Sulayman and conquered Córdoba, which was plundered by the Catalans. Muhammad was made again caliph, but his mercenaries assassinated him in July and restored Hisham II.