On the request of Sharif Hasan ibn Ajlan, Sultan al-Nasir Faraj appointed Barakat as a co-Emir of Mecca in 809 AH. In 811 AH the Sultan also appointed his brother Ahmad ibn Hasan as a co-Emir of Mecca and made their father Vice Sultan in the Hejaz. In 818 AH the three Sharifs were deposed by Sultan al-Mu'ayyad Shaykh. In 819 AH Barakat met with the Sultan on his father's behalf and secured the latter's reappointment as Emir of Mecca. He himself returned to Mecca as co-Emir in 820 AH. In Rabi al-Awwal 821 AH Hasan ordered his men to pledge allegiance to Barakat, indicating his intention to transfer power to his son. In 824 AH Barakat was opposed by his brother Ibrahim ibn Hasan when the latter was not appointed co-Emir of Mecca by Sultan al-Muzaffar Ahmad. Ibrahim unilaterally ordered the muezzin to include his name alongside the names of his father and brother. This continued until Hasan ordered for Ibrahim's name to be removed in 826 AH. In 827 AH Hasan and Barakat were deposed by Sultan al-Ashraf Barsbay, then reinstated in late 828 AH. In Muharram 829 AH Hasan travelled to Egypt in response to summons from Barsbay and left Barakat in charge of Mecca. In Cairo, the Sultan received Hasan and confirmed him as Emir of Mecca, but only after he agreed to pay the sum of thirty thousand dinars. He was kept in Cairo until the first instalment of five thousand dinars was received. On the way back from Egypt Hasan fell ill; he returned to Cairo and died there on Thursday night, 17 Jumada al-Thani 829 AH.
Emir of Mecca
After Sharif Hasan's death Barakat and Ibrahim responded to summons from Barsbay and left their brother Abu al-Qasim in charge of Mecca. In Cairo the Sultan appointed Barakat as Emir of Mecca and ordered Ibrahim to swear an oath of loyalty to his brother. Barakat's appointment was conditional on his agreement to pay the remaining balance of Hasan's debt, amounting to twenty five thousand dinars. The Sultan also demanded an annual tribute of ten thousand dinars and the customary share owed to him from the customs duties of Jeddah. He further stipulated that Indian ships would no longer be subject to duties at the Sharif's port in Jeddah, and would instead pay their dues at the Mamluk port in Suez. Barakat and Ibrahim left Cairo on 11 Shawwal 829 AH and reached Mecca around 11-15 Dhu al-Qi'dah. During this time, Jalaluddin Muhammad Shah, the Sultan of Bengal, gifted Barakat with presents and robes of honour. With Barakat's permission, the Bengali Sultan constructed two Islamic institutions ; the first in Makkah and the latter in Madinah which was built between 1428 and 1431. An account of these can be found in the Tarikh Makkah..