From the late 14th until the end of the 18th century, Tbilisi came under the rule of various foreign invaders once again and on several occasions was completely burnt to the ground. In 1386, Tbilisi was invaded by the armies of Tamerlane. In 1440, the city was invaded and destroyed by Jahan Shah (the Shah of the town of Tabriz in Persia). From 1477 to 1478 the city was held by the Ak Koyunlu tribesmen of Uzun Hassan.