Treaty of Gulistan
Tarki finally passed to Russia under the terms of the Treaty of Gulistan (1813). Eight years later, the Russians built Burnaya Fortress there, which was succeeded by Fort-Petrovsk and original Kumyk name Andzhi-kala, now known as Makhachkala.