At the age of twelve, Al-Mu'ayyad Shaykh was purchased as a slave by Sultan
Barquq. Having entered the service of the Sultan, he went through all the ranks. In 1400, he was appointed governor of
Tripoli by Sultan
An-Nasir Faraj during the
Tamerlane's invasion of Syria. While the other emirs took refuge during the
sack of Aleppo, he dared to attack and was imprisoned before he managed to escape. Following Tamerlane's departure, he was appointed as governor of
Damascus. In 1404, he allied himself with Yazbak, in which both seriously threatened An-Nasir Faraj's rule in Syria but they were ultimately defeated. A year later, a new sedition deposed the sultan, who had to flee and was replaced by his brother
Izz al-Din Abd al-Aziz. Yazbak's party triumphed and Al-Mu'ayyad became lieutenant general of the sultanate. He returned to the government of Damascus after the re-establishment of An-Nasir Faraj. He even seemed to be a faithful servant by assisting the latter in suppressing the revolt of Djakam, emir of Aleppo, who proclaimed himself sultan. However, An-Nasir Faraj recklessly arrested Al-Mu'ayyad who escaped and recaptured Damascus from Nauroz, his designated successor, to whom he ceded the governance of Tripoli. In 1409, Nasir Faraj returned to Damascus, where Al-Mu'ayyad protested his loyalty to the sultan. In 1410, he along with other emirs took control of
Cairo where they attempted to establish An-Nasir Faraj's son as sultan. As Sultan approached, Al-Mu'ayyad retreated to
Suez. An-Nasir Faraj pardoned him once again and gave him the government of Aleppo. In 1412, a new rebellion forced the sultan to return to Damascus, but this time the sultan, abandoned by his troops, was beaten and had to surrender to the insurgents. On 23 May 1412, An-Nasir Faraj was arrested and killed in the
Citadel of Damascus. Later on, Al-Mu'ayyad returned to Cairo and conspired to make the Abbasid caliph
Abu’l-Faḍl Abbas Al-Musta'in Bi'llah unpopular, before he managed to dismiss him after seven months of reign and was proclaimed sultan. ==Reign==