Ibn Battuta stayed in India for several years and was appointed as Qazi (judge) of Delhi by Muhammad bin Tughlaq. His detailed account of his travels, the "Rihla," is a valuable source of information about the history, society, and geography of the 14th-century world, including India under the Tughlaqs.