 Al-Mansur died in 1002.He was succeeded as hajib by his son, Abd al-Malik.In 1008, Abd al-Malik died and was succeeded as hajib by his half-brother, Abd ar-Rahman, known as Sanchuelo because his mother was Navarrese.