The origins of the border date from the mid-19th century, when the Russian empire expanded into Central Asia and established control over the Lake Zaysan region. The establishment of the border between the Russian Empire and the Qing Empire, not too different from today's Sino-Kazakh/Kyrgyz/Tajik border was provided for in the Convention of Peking of 1860; the actual border line pursuant to the convention was drawn by the Treaty of Tarbagatai (1864) and the Treaty of Uliassuhai (1870), leaving Lake Zaysan on the Russian side. The Qing Empire's military presence in the Irtysh basin crumbled during the Dungan revolt (1862-77). After the failure of the rebellion and the reconquest of Xinjiang by Zuo Zongtang, the border between the Russian and the Qing empires in the Ili River basin was further slightly readjusted, in Russia's favour, by the Treaty of Saint Petersburg (1881) and a series of later protocols. In 1915 an agreement was signed more precisely delimiting the border between the Ili Valley and the Dzungarian Alatau region.