Timur's invasions of Georgia between 1386 and 1403 brought Dmanisi's heyday to an end. In 1486, the town was devastated in an attack by Yaqub bin Uzun Hasan, the ruler of Aq Qoyunlu. After the final disintegration of the Kingdom of Georgia in the 1490s, it became part of the Kingdom of Kartli. Dmanisi was then granted by the crown to the Baratashvili family, whose two lines divided all of the town and its premises in 1536. Dmanisi was occupied and refortified by the Ottoman troops in 1578, but recovered by King Simon I of Kartli in 1583. Afterwards, Dmanisi was little more than a military outpost owned by the Baratashvili. A modest revival of economic and ecclesiastic life at Dmanisi, then also known as Dbanisi, in the early 18th century proved to be short-lived. Dmanisi's downfall in a renewed warfare and political anarchy was followed by the dissolution of its episcopal see in the middle of the 18th century; the area became largely depopulated until new rural settlements began to emerge around the former town already under the Imperial Russian rule over Georgia in the early 19th century. One of these, Bashkicheti, was renamed into Dmanisi after the historical town in 1947.