Humayun ruled from 1530 to 1556 A.D. He succeeded his father Babur at the young age of 23. He had to cope up with number of problems left behind by Babur.
Barani was a contemporary of Muhammad bin Tughlaq and Firuz Shah Tughlaq both. He wrote a number of renowned texts, such as the Fatwa-i-Jahandari, which elaborates on the principles to be followed by Muslim rulers to attain merit.