Nasir al-Dawla ibn Hamdan was a descendant of the Hamdanid dynasty who became a general of the Fatimid Caliphate. He played a leading role in the civil war of 1067–73 between the Fatimids' Turkish and Nubian troops as the leader of the former. In this struggle, he requested the assistance of the Seljuks and even tried to abolish the Fatimid caliph al-Mustansir and restore allegiance to the Abbasids. He succeeded in becoming master of Cairo and reduced al-Mustansir to a powerless puppet, while his Turks plundered the palace and the treasury. His increasingly tyrannical regime led to a split and he was ousted for a time, but was able to regain control of Cairo in 1071/2. His rule was ended with the murder of himself and his family in March/April 1073. The anarchic conditions in the country continued until al-Mustansir called upon the governor of Palestine, Badr al-Jamali, for aid in late 1073.