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.
The major objective of Ghori to attack India was to expand his empire and satisfy his imperialistic ambitions. The expansion of Islam and his ambition to glorify his name through his military exploits could be said to be his secondary aims. Similarly, loot and plunder may also be secondary aims because that was norm in those days to acquire Gold and wealth from defeated rulers.