sentences:  Nizar was most likely the eldest son of the caliph, although another son named Abdallah is sometimes listed as the senior of al-Mustansir's sons.About 1068, as internal turmoils led the dynasty close to collapse, al-Mustansir dispersed his sons throughout his territories as a safeguard; although Nizar is not mentioned by name except in later versions of this story, he was likely involved in this scheme as well.This flight lasted at least until the Armenian commander Badr al-Jamali assumed power in 1073 as vizier and quasi-dictator and restored order in Egypt.