The famous Moroccan traveller Ibn Batuta visited India during the reign of Muhammad bin Tughluq (1325-1351). He spent several years in the Sultanate, serving as a qazi (judge) in Delhi. In 1341, Muhammad bin Tughluq appointed him as his ambassador to the Mongol court in China.