The family origins of Al-Ashraf Musa are not entirely clear. According to Lane-Poole, Al-Ashraf Musa was a descendant of
Saladin and the great grandson of
Az-Zahir Ghazi, Amir of Aleppo, who had struggled against
Al-Adil for supremacy in the Ayyubid domains. His grandfather, the son of Az-Zahir, was al-Aziz Mohammad, also Amir of Aleppo, while his father, son of al-Aziz, was
An-Nasir Yusuf, Amir of Aleppo, and later Damascus. However, if this were the case he would have been titular head of a government in Egypt which was fighting his own father. According to other sources he was the son of Yusuf, and grandson of
al-Mas'ud Yusuf. Al-Mas'ud Yusuf, the son of Sultan
Al-Kamil of Egypt, was the last Ayyubid ruler of Yemen. After the Ayyubids were expelled from Yemen his family moved to Cairo. ==Accession==