Yahya expected to become a courtier of Mubarak Shah (r. 1431-1434), a ruler of the Delhi Sultanate. Therefore, he wrote Tarikh-i-Mubarak Shahi and presented it to the Sultan, hoping to win the royal patronage.[1]