Кокандское ханство
The Dzungar invaded, dominating the Kazakh people for a period. The Kazakh fought to protect their land and preserve independence. In 1730 the Kazakh defeated the Dzungar in the Anyrakay mountains, north-west of Almaty. During the eighteenth century, the city and region was roughly on the border between the Khanate of Kokand and Qing Empire. It was then absorbed as part of the Russian Empire in the 1850s.