Rabati Castle in Akhaltsikhe, Georgia, was originally established in the 9th century as the Lomisa Castle. It was completely rebuilt by Ottomans. Most of the surviving buildings date from the 17th and 18th centuries.
According to the Georgian Chronicles the city was established in the 9th century by Guaram Mampal, son of the King of Tao. From the 13th to the end of 14th centuries it was the capital city of Samtskhe-Saatabago, ruled by the Georgian princely (mtavari) family and a ruling dynasty of the Principality of Samtskhe, the House of Jaqeli.
In 1393 the city was attacked by the armies of Tamerlane. Despite the Turko-Mongol invasions fortress withstood and continued to thrive. After the Treaty of Constantinople in 1590, the whole territory of Samtskhe-Saatabago went under the rule of Ottoman Empire. Turks Mostly used to build defensive edifices. In 1752 first mosque was built in Rabati.
Metropolitan John writes in the late 18th century that 'despite the fact that a large part of the population has been Islamized, there's still a functioning Orthodox church'. After the Treaty of Georgievsk between the Kingdom of Kartli and the Russian Empire was signed, the question of the fate of Akhaltsikhe arose. The first attempt to take the fortress in 1810 failed. Prince Paskevich successfully stormed the fortress 18 years later, in the great Battle of Akhalzic. After the Treaty of Adrianople in 1829, the Ottomans yielded part of Akhaltiske Region.
The fortress and its adjacent buildings were extensively rebuilt and renovated in 2011-2012 in order to attract more tourists to the area.
References:The Walls of Constantinople are a series of defensive stone walls that have surrounded and protected the city of Constantinople (today Istanbul) since its founding as the new capital of the Roman Empire by Constantine the Great. With numerous additions and modifications during their history, they were the last great fortification system of antiquity, and one of the most complex and elaborate systems ever built. They were also the largest and strongest fortification in both the ancient and medieval world.
Initially built by Constantine the Great, the walls surrounded the new city on all sides, protecting it against attack from both sea and land. As the city grew, the famous double line of the Theodosian Walls was built in the 5th century. Although the other sections of the walls were less elaborate, they were, when well-manned, almost impregnable for any medieval besieger.