In 1774, the Khanate was proclaimed independent under the Treaty of Küçük Kaynarca with the Ottomans, but was then conquered by the Russian Empire in 1783.