In the late nineteenth century, the eastern part of what is today Kyrgyzstan, mainly the Issyk-Kul Region, was ceded to the Russian Empire by Qing China through the Treaty of Tarbagatai. The territory, then known in Russian as "Kirghizia", was formally incorporated into the Empire in 1876. The Russian takeover was met with numerous revolts, and many of the Kyrgyz opted to relocate to the Pamir Mountains and Afghanistan.