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.