The Caliph Harun al-Rashid (763 – 809 AD) even spent some time living in Derbent. Not all Muslim travellers and scholars, however, associated Dhul-Qarnayn's wall with the Caspian Gates of Derbent. For example, the Muslim explorer Ibn Battuta (1304–1369 AD) travelled to China on order of the Sultan of Delhi, Muhammad bin Tughluq and he comments in his travel log that "Between it city of Zaitun in Fujian and the rampart of Yajuj and Majuj and Magog is sixty days' travel." The translator of the travel log notes that Ibn Battuta confused the Great Wall of China with that supposedly built by Dhul-Qarnayn.