This city was a hub of Zoroastrian religion until the arrival of Islam in 633-654 AD. Slowly, this city was absorbed by Islam like many others in Iran.
Due to the remote location of this city, it evaded many battles and destruction in the past. Yazd managed to flourish during the the Mongol Invasion in the 13th century because many of the artists moved here for safety. Yazd was visited by Marco Polo in 1272, who described it as a good and noble city and remarked its silk production. Yazd became the capital of the Muzaffarids in the 14th century but only lasted for few years.