Ibn Battuta, the Moroccan traveler, visited India during Muhammad bin Tughluq's reign (1324-1351) and stayed for 8 years (1333-1341). He served as a qazi (judge) in the Tughluq administration and documented his observations in his travelogue 'Rihla'.