In 1652 after the death of his father Jahangir Khan, the ruler of Jungars Erdeni Batyr had dramatically increased his military pressure on the Kazakh Khanate in an attempt to conquer it.
Galdan Boshugtu Khan replaced him (1670–1699, in some sources 1670–1697), and was later succeeded by Tsewang Rabtan (1699–1729).
Throughout these invasions, a weak Kazakh ruler named Bahadur Khan had taken the throne.
Tauke Muhammad, who remained the khan of all three Juzes, managed to keep the unity of Kazakhs, earning him the honorific title "Shah-i-Turan" (Persian for "King of Turan") like his father before him.
[3] Tauke Khan is also known for refining the Kazakh code of laws, and reissuing it under the title "Жеті Жарғі" (transliterated: "Jetı Jarğı" — "Seven Charters").