Result Victory by the Qing dynasty
Fall of the Kashgaria
Weakening of the Qing Dynasty
Immigration of Huis to Russia, Kazakhstan and Kyrgyzstan.
Zuo Zongtang, Dolongga Yakub Beg, Ma Hualong
Casualties and losses
several million, including civilians and soldiers
The Dungan Revolt was a religious war in 19th-century China. It is also known as the Hui Minorities' War and the Muslim Rebellion. The term is sometimes used to refer to the Panthay Rebellion in Yunnan as well. It was an uprising by members of the Hui and other Muslim ethnic groups in China's Shaanxi, Gansu and Ningxia provinces, as well as in Xinjiang, between 1862 and 1877.
The purpose of this uprising was to develop a Muslim country on the western bank of the Yellow River (Shaanxi, Gansu and Ningxia (excluding the Xinjiang province)). A common misconception is that it was directed against the Qing Dynasty, but there is no evidence at all showing that they intended to attack the capital of Beijing. The uprising was actively encouraged by the leaders of the Taiping Rebellion. When the rebellion failed, mass-immigration of the Dungan people into Imperial Russia, Kazakhstan and Kyrgyzstan ensued. Before the war, the population of Shaanxi province totalled approximately 13 million inhabitants, at least 1,750,000 of whom were Dungan (Hui). After the war, the population dropped to 7 million; at least 150,000 fled. Xi'an, the capital of Shaanxi province, was the Holy city of Dungan (Hui) in China before the revolt. But once-flourishing Chinese Muslim communities fell 93% in the revolt in Shaanxi province. Between 1648 and 1878, around twelve million Hui and Han Chinese were killed in ten unsuccessful uprisings.
Rebellion in Gansu and Shaanxi
Islam in China
History of Islam in China
Lan Yu • Yeheidie'erding
Hui Liangyu • Ma Bufang
Zheng He • Liu Zhi
Haji Noor • Yusuf Ma Dexin
Cuisine • Sini • Martial arts
Islamic Association of China
Chinese mosques • Niujie Mosque
Linxia • Xinjiang
Ningxia • Kashgar
Hui • Uygur • Kazakhs
Dongxiang • Kyrgyz • Salar
Tajiks • Bonan • Uzbeks
Tatars • Utsul • Tibetans
Dungan revolt • Panthay Rebellion
In the Qianlong era, scholar Wei Shu(魏塾) commented on Jiangtong(江统)'s essay Xironglun (徙戎论) that if the Muslims didn't migrate out they were going to be like the Five Hu 五胡, who overthrew the Western Jin. The Qianlong emperor heavily punished Wei's clan. The people in Wei's village said this was unreasonable(论理不斩魏塾).
Chinese Muslims had been traveling to West Asia for many years prior to the Hui Minorities' War. In the 18th century, several prominent Muslim clerics from Gansu studied in Mecca and Yemen under the Naqshbandi Sufi teachers. Two different forms of Sufism were brought back to Northwest China by two charismatic Hui sheikhs: Khafiya (also spelt Khafiyya or Khufiyah; Chinese: 虎夫耶, Hǔfūyē), associated with the name of Ma Laichi (马来迟, 1681-1766), and a more radical Jahriyya (also spelt Jahriya, Jahariyya, Jahariyah, etc.; Chinese: 哲赫林耶, Zhéhèlínyē, or 哲合忍耶, Zhéhérěnyē), founded by Ma Mingxin (马明新 or 马明心, 1719(?)-1781). These coexisted with the more traditional, non-Sufi Sunni practices, centered around local mosques and known as gedimu (格底目 or 格迪目). The Khafiya school, as well as non-Sufi gedimu tradition, both tolerated by the Qing authorities, were referred to by them as the "Old Teaching" (老教), while Jahriya, viewed as suspect, became known as the "New Teaching" (新教).
Disagreements between the adherents of Khafiya and Jahriya, as well as perceived mismanagement, corruption, and anti-Muslim attitudes of the Qing officials resulted in attempted uprisings by Hui and Salar followers of the New Teaching in 1781 and 1783, but they were promptly suppressed.
Course of the rebellion
As the Taiping troops approached south-eastern Shaanxi in the spring of 1862, the local Han Chinese, encouraged by the Qing government, formed tuanlian (trad. 團練, simplified 团练) militias to defend the region against the Taipings. Afraid of the armed Han, the Muslims formed their own tuanlian units.
According to modern researchers (Lipman (1998), p. 120-121), the Muslim rebellion started in 1862 not as a centrally planned uprising, but as a coalescing of many local brawls and riots triggered by seemingly trivial causes. The prestige of the Qing dynasty being low and its armies being busy elsewhere, the rebellion that started in the spring of 1862 in the Wei River valley was able to spread rapidly throughout the southeastern Shaanxi. By late June 1862, the organized Muslim fighter bands were able to besiege Xi'an, which was not relieved by the Qing general Dolongga (Chinese: 多隆阿, Duo Long-a) until the fall of 1863.
A vast number of Muslim refugees from Shaanxi fled to Gansu. Some of them formed the "Eighteen Great Battalions" in eastern Gansu, intending to fight back to their homes in Shaanxi.
While the Hui rebels took over Gansu and Shaanxi, Yaqub Beg, who had fled from Kokand Khanate in 1865 or 1866 after losing Tashkent to the Russians, set himself up as the ruler in Kashgar, soon taking over the entire Xinjiang.
In 1867 the Qing government sent one of their best officials, Zuo Zongtang, a hero of the suppression of the Taiping Rebellion, to Shaanxi. His forces were ordered to help put down the Nian Rebellion and he was not able to deal with the Muslim rebels until December 1868. Zuo's approach was to rehabilitate the region by promoting agriculture, especially cotton and grain, as well as supporting orthodox Confucian education. Due to the poverty of the region Zuo had to rely on financial support from outside the North-West.
After suppressing the rebellion in Shaanxi and building up enough grain reserves to feed his army, Zuo attacked the most important Muslim leader, Ma Hualong (马化龙). Zuo's troops reached Ma's stronghold, Jinjibao (Chinese: 金积堡, Jinji Bao, i.e. Jinji Fortress) in what was then north-eastern Gansu in September 1870, bringing Krupp siege guns with him. After a sixteen months' siege, Ma Hualong was forced to surrender in January of 1871. Zuo sentenced Ma and over eighty of his officials to death by slicing. Thousands of Muslims were exiled to different parts of China.
Zuo's next target was Hezhou (now known as Linxia), the main Hui people center west of Lanzhou and a key point on the trade route between Gansu and Tibet. Hezhou was defended by the Muslim forces of Ma Zhan'ao (马占鳌). Not a Jahriya (New Teaching) adherent, he was a pragmatic member of the Khafiya (Old Teaching) movement, ready to explore avenues for peaceful coexistence with the Qing state. After successfully repulsing Zuo's offensive against Hezhou in 1872, he offered to surrender his stronghold to the empire, and offered his assistance to the Qing for the duration of the war. His diplomatic skills are evidenced by the success he managed achieved in preserving his community: while Zuo Zongtang pacified other areas by moving the Muslims elsewhere (in the spirit of the "washing off the Muslims" (Chinese: 洗回; pinyin: Xǐ Huí) approach that had been long advocated by some officials), in Hezhou it were the non-Muslims whom Zuo relocated out of the area. The Hezhou (Linxia) area remains heavily Muslim to this day, achieving the status of Linxia Hui Autonomous Prefecture under the PRC.
Zuo's troops being reinforced by some of the Hezhou Muslims that have changed sides, he now planned to proceed westward, along the Hexi Corridor toward Xinjiang. However, he felt it necessary to first secure his left flank by taking Xining, which not only had a large Muslim community of its own, but also sheltered many of the refugees from Shaanxi. After three months' resistance, Xining fell to Zuo's commander Liu Jintang in the late fall of 1872. The defenders' commander Ma Guiyuan was captured, and thousands of armed defenders was killed. The Muslim population of Xining was spared, however; the Shaanxi refugees sheltered there were resettled or arable lands in eastern and southern Gansu, isolated from other Muslim areas.
Despite repeated offers of amnesty, many Muslims continued to resist at their last Gansu stronghold in Suzhou (now known as Jiuquan), which sits astride the Hexi Corridor in the western part of the province. The defence of the city was commanded by Ma Wenlu, originally from Xining; many Hui that had retreated from Shaanxi were there as well. After securing his supply lines, Zuo besieged Suzhou the city in September 1873 with 15,000 troops under his personal command. The Huis' rifles were no match to Zuo's siege guns, and the fortress fell on October 24. Zuo had 7,000 Muslims executed, and resettled the survivors in southern Gansu, to ensure that the entire Gansu Corridor from Lanzhou to Dunhuang would remain Muslim-free, preventing a possibility of future collusion between the Muslims of Gansu and Shaanxi and those of Xinjiang.
Rebellion in Xinjiang
Shooting exercises of Yakub Beg's Dungan and Chinese taifurchi (gunners)
 Pre-rebellion situation in Xinjiang
By the 1860s, Xinjiang had been under Qing rule for a century. The entire Xinjiang was administratively divided into three parts ("circuits"; Chinese: 路, lu):
The North-of-Tianshan Cirucit (天山北路, Tianshan Beilu), including the Ili basin and Dzungaria. (This region roughly corresponds to the modern Ili Kazakh Autonomous Prefecture, including prefectures it controls and a few smaller adjacent prefectures).
The South-of-Tianshan Circuit (天山南路, Tianshan Nanlu). Ir included the "Eight cities", i.e. the "Four Western Cities" (Khotan, Yarkand, Yangihissar, Kashgar) and the "Four Eastern Cities" (Ush, Aqsu, Kucha, Karashahr).
The Eastern Circuit (东路, Donglu), in eastern Xinjiang, centered around Urumqi.
The General of Ili, stationed in Huiyuan Cheng (Ili), had the overall military command in all three circuits. He also was in charge of the civilian administration (directly in the North-of-Tianshan Circuit, and via local Muslim (Uyghur) begs in the South Circuit). However, the Eastern Circuit was subordinated in the matters of civilian administration to the Gansu province.
Trying (not always successfully) to prevent repetition of incursions of Afaqi khojas from Kokand into Kashgaria, such as those of Jahangir Khoja in the 1820s or Wali Khan in 1857, Qing government had increased the troops level in Xinjiang to some 50,000. There were both Manchu and Chinese units in the province; the latter, having been recruited mostly in Shaanxi and Gansu, had a heavily Hui (Dungan) component. A large part of the Qing army in Xinjiang was based in the Nine Forts of the Ili Region, but there were also forts with Qing garrisons in most other cities of Xinjiang as well.
The cost of maintaining this army was much higher than the taxation of the local economy could sustainably provide, and required subsidies from the central government - which, however, became infeasible by the 1850-60s due to the costs of fighting Taiping and other rebellions in the Chinese heartland. The Qing authorities in Xinjiang responded by raising taxes and introducing new ones, and selling official posts to the highest bidders (e.g. that of governor of Yarkand to Rustam Beg of Khotan for 2,000 yambus, and that of Kucha to Sa'id Beg for 1,500 yambus). The new officeholders would then proceed to recoup their investment by fleecing their subject population.
Increasing tax burden and corruption only added to the discontent of the Xinjiang people, who had long suffered both from the maladministration of Qing officials and the local begs subordinated to them and from the destructive invasions of the khojas. The Qing soldiers in Xinjiang, however, still were not paid on time or properly equipped.
With the start of the rebellion in Gansu and Shaanxi in 1862, rumors started spreading among the Hui (Dungans) of Xinjiang that the Qing authorities are preparing a wholesale preemptive slaughter of the Huis in Xinjiang, or in a particular community. The opinions on the veracities of these rumors differ: while Tongzhi Emperor described them as "absurd" in his edict of September 25, 1864, Muslim historian generally believe that massacres were indeed planned, if not by the imperial government, then by various local authorities. Thus it was the Dungans that usually were to revolt in most Xinjiang towns, although the local Turkic people - Uyghurs, Kyrgyz, or Kazakhs - would usually quickly join the fray.
The first spark of the rebellion in Xinjiang was small enough for the Qing authorities to extinguish easily. On March 17, 1863, some 200 Dungans from the village of Sandaohe (a few miles west of Suiding), supposedly provoked by a rumor of a preemptive Dungan massacre, attacked Tarchi (塔勒奇城, Taleqi Cheng), one of the Nine Forts of the Ili. The rebels seized the weapons from the fort's armory and killed soldiers of its garrison, but were soon defeated by government troops from other forts and killed themselves.
It was not until the next year that the rebellion broke out again - this time, almost simultaneously in all three Circuits of Xinjiang, and on a scale that made suppressing it beyond the ability of the authorities.
On the night of June 3-4, 1864, the Dungans of Kucha, one of the cities South of Tianshan, rose, soon joined by the local Turkic people. The Chinese fort, which, unlike many other Xinjiang locations, was located inside of the town, rather than outside of it, fell within a few days. Government buildings were burnt and some 1000 Chinese and 150 Mongols were killed. Neither of the Dungan or Turkic leaders of the rebellion having enough authority in the entire community to become commonly recognized as a leader, the rebels instead choose a person who had not participated in the rebellion, but was known for his spiritual role: Rashidin (Rashīdīn) Khoja, a dervish and the custodian of the grave of his ancestor of saintly fame, Arshad-al-Din (? - 1364 or 65). Over the next three years, he was to send military expedition east and west, attempting to bring the entire Tarim Basin under his control; however, his expansion plans were to be frustrated by Yaqub Beg.
Just three weeks after Kucha, the rebellion started in the Eastern Circuit. The Dungan soldiers of the Urumqi garrison rebelled on June 26, 1864, soon after learning about the Kucha rebellion. The two Dungan leaders were Tuo Ming (a.k.a Tuo Delin), a New Teaching ahong from Gansu, and Suo Huanzhang, an officer with close ties to Hui religious leaders as well. Large parts of the city were destroyed, the tea warehouses burned, and the Manchu fortress besieged. Then the Urumqi rebels started advancing westward through what is today Changji Hui Autonomous Prefecture, taking the cities of Manas (also known then as Suilai) on July 17 (the Manchu fort there fell on September 16) and Wusu (Qur Qarausu) on September 29.
On October 3, 1864, the Manchu fortress of Urumqi also fell to the joint forces of Urumqi and Kuchean rebels. In a pattern that was to repeat in other Chinese forts throughout the region, the Manchu commander, Pingžui, preferred to explode his gunpowder, killing himself and his family, rather than surrender.
The Dungan soldiers in Yarkand in Kashgaria learned of the Manchu authorities plan to disarm or kill them, and rose in the wee hours of July 26, 1864. Their first attack on the Manchu fort (which was outside of the walled Muslim city) failed, but it still cost 2,000 Qing soldiers and their families their lives. In the morning, the Dungan soldiers entered the Muslim city, where some 7,000 Chinese were massacred. The Dungans being numerically few compared to the local Turkic Muslims, they picked a somewhat neutral party - one Ghulam Husayn, a religious man from a Kabul noble family - as the puppet padishah.
By the early fall of 1864, the Dungans of the Ili Basin in the "Northern Circuit" rose too, encouraged by the success of Urumqi rebels at Wusu and Manas, and worried by the prospects of preemptive repressions by the local Manchu authorities. The Ili General (the Ili Jiangjun, 伊犁将军) Cangcing, hated by the local population as a corrupt oppressor, was sacked by the Qing government after his troops had been defeated by the rebels at Wusu, and Mingsioi was appointed to replace them. His attempts to negotiate with the Dungans were in vain though; on November 10, 1864, the Dungans rose both in Ningyuan (the "Taranchi Kuldja"), the commercial center of the region, and Huiyuan (the "Manchu Kuldja"), the military and administrative center of the region. Kulja's Taranchis (Turkic-speaking farmers who were to form later part of the Uyghur people) joined in the rebellion. When the local Muslim Kazakhs and Kyrgyz felt that the rebels are gained the upper hand, they joined it as well; on the other hand, the Buddhist Kalmyks, and Xibe mostly stayed loyal to the Qing government.
Ningyuan fell to the Dungan and Uighur rebels at once, but the strong government force at Huiyuan made the insurgents retreat after 12 days of heavy fighting in the streets of the city. The local Hans, seeing the Manchus winning, joined forces with them. However, the Qing forces' counter-offensive failed. The imperial troops lost their artillery and the "Ili General" Mingsioi barely escaped capture. With the fall of Wusu and Aksu, the Qing garrison, entrenched in the Huiyuan fortress, was completely cut off from the rest of empire-controlled territory; Mingxu had to send his communications to Beijing via Russia.
While the Qing forces in Huiyuan successfully repelled the next attack of the rebels (12 December 1864), the rebellion kept spreading through the northern part of the province (Dzungaria), where the Kazakhs were glad to take revenge on the Kalmyks that used to rule the area in the past.
"Ruins of the Theater in Chuguchak", painting by Vereshchagin (1869-70)For the Chinese New Year of 1865, the Hui leaders of Tacheng (Chuguchak) invited the local Qing authorities and Kalmyk nobles to assemble in the Hui mosque, in order to swear a mutual oath of peace. But once the Manchus and Kalmyks were in the mosque, the Huis seized the city armory, and started killing the Manchus. After two days of fighting, the Muslims were in control of the town, while the Manchus were besieged in the fortress. However, with the Kalmyk help, the Manchus were able to retake the Tacheng area by the fall of 1865. This time, it was the Huis turn to be locked up in the mosque. The fighting resulted in the destruction of Tacheng and the surviving residents fleeing the town.
Both the Qing government in Beijing and the beleaguered Kulja officials asked the Russian for assistance against the rebellion (via Russian envoy in Beijing, G.A. Vlangali, and via the Russian commander in Semirechye, General Gerasim Kolapakovsky (Колпаковский) respectively). The Russians, however, were diplomatically non-committal: on the one hand, as Vlangali wrote to Saint Petersburg, a "complete refusal" would be bad for Russia's relations with Beijing; on the other hand, as Russian generals in Central Asia felt, seriously helping China against Xinjiang's Muslims would do nothing to improve Russia's problems with its own new Muslim subjects - and in case the rebellion were to succeed and form a permanent Hui state, having been on the Qing's side would do nothing good for Russia's relations with that new neighbor. The decision was thus made in Saint Petersburg in 1865 to avoid offering any serious help to the Qing, beyond agreeing to train Chinese soldiers in Siberia - should they send any - and to sell some grain to the defenders of Kuldja on credit. The main priority of Russian government was in guarding its border with China and preventing any possibility of the spread of the rebellion into Russia's own domain.
Considering that offense is the best defense, Kolpakovsky suggested to his superiors in February 1865 that Russia should go beyond defending its border and move in force into Xinjiang's border area, seizing Chuguchak, Kuldja and Kashgar areas and colonizing the area with Russian settlers - all to better protect the Romanovs' empire's other domains. The time was not ripe for such an adventure, however: as Foreign Minister Gorchakov noted, such a breach of neutrality would be not a good thing if China does recover its rebel provinces, after all.
Meanwhile the Qing forces in the Ili Valley did not fare well. In April 1865, the Huining (惠宁) fortress (today's Bayandai (巴彦岱), located between Yining and Huiyuan), fell to the rebels after three months' siege. Its 8,000 Manchu, Xibe, and Solon defenders were massacred, and two survivors, their ears and noses cut off, sent to Huiyuan - Qing's last stronghold in the Valley - to tell the Governor General about the fate of Huining.
Most of the Huiyuan (Manchu Kulja) fell to the rebels on January 8, 1866. Most of the residents and garrison perished; some 700 rebels died as well. Mingsioi, still holding out in the Huiyuan fortress with the remainder of his troops, but having run out of food, sent a delegation to the rebels, bearing a gift of 40 sycees of silver and four boxes of green tea, and offering to surrender, provided the rebels guarantee their lives and allow them to keep their allegiance to the Qing government. Twelve Manchu officials with their families left the citadell along with the delegation. The Huis and Uyghurs received the delegation and allowed the refugees from Huiyuan to settle in Yining ("the Old Kuldja"). However, the rebels would not accept Mingsioi's condition, and required instead that he surrender immediately and recognize the authority of the rebels. As Mingsioi rejected the rebels' proposal, the rebels proceeded to storm the citadel at once. On March 3, the rebels having broken into the citadel, Mingsioi assembled his family and staff in his mansion, and blew it up, dying under its ruins. This was the end, for the time being, of the Qing rule in the Ili Valley.
Yaqub Beg in Kashgaria
Yakub Beg's "Andijani" taifurchi (gunners)As reported by Muslim sources, the Qing authorities in Kashgar did not just intend to eliminate local Dungans, but in fact managed to carry out such a preemptive massacre in the summer of 1864. Perhaps this weakening of the local Dungan contingent resulted in the rebellion been initially not as successful in this area as in the rest of the province. Although the Dungan rebels were able to seize Yangihissar, neither they not the Kyrgyz of Siddiq Beg could break into either into the Manchu forts outside of Yangihissar and Kashgar, nor into the walled Muslim city of Kashgar itself, held by Qutluq Beg, a local Muslim appointee of the Qing.
Unable to take control of the region on the own, the Dungan and Kyrgyz turn for help to Kokand's ruler Alim Quli. The help arrived in the early 1865, in the form both spiritual and material. The spiritual part consisted of Buzurg Khoja (also known as Buzurg Khan), member of the influential Afaqis family of khojas, whose religious authority could be expected to raise the rebellious spirit of the populace. He was a fine heir of the long family tradition of starting mischief in Kashgaria, being a son of Jahangir Khoja and brother of Wali Khan Khoja. The material part - as well as the expected conduit of Kokandian influence in Kashgaria - consisted of Yaqub Beg, a young but already well known Kokandian military commander, with an entourage of a few dozen Kokandian soldiers, who became known in Kashgaria as Andijanis.
Although Siddiq Beg's Kyrgyz had already taken the Muslim town of Kashgar by the time Buzurg Khoja and Yaqub Beg arrived, he had to allow the popular khoja to settle in the former governor's residence (the urda). Siddiq's attempts to assert his dominance were crushed by Yaqub Beg's and Buzurg's forces. The Kyrgyz then had to accept Yaqub's authority.
With his small, but comparatively well disciplined and trained army, made of the local Dungans and Kashgarian Turkic people (Uighurs, in modern terms), their Kyrgyz allies, Yaqub's own Kokandians, as well as some 200 soldiers sent by the ruler of Badakhshan, Yaqub Beg was able not only to take the Manchu fortress and the Chinese town of Kashgar during 1865 (the Manchu commander in Kashgar, as usual, blowing himself up), but to defeat much larger force sent by the Rashidin of Kucha, who was trying to dominate the Tarim Basin region himself.
While Yaqub Beg was asserting his authority over Kashgaria, the situation back home in Kokand changed radically. In May 1865, Alim Quli lost his life while defending Tashkent against the Russians; many of his soldiers (primarily, of Kyrgyz and Kipchak background) deemed it advisable to flee for comparative safety of Kashgaria. They appeared at the borders of Yaqub Beg's domain in early September 1865.
The Loss of Life
In Chinese:The fluctuation of the Hui population in Qing dynasty.
Throughout the 270 years of Qing dynasty history, the development of Hui people in Shaanxi province had been through a huge up-down process. At the beginning of Qing, the Hui people had about 845,000; it increased to 1,700,000 within 200 years. But because of the Hui Rebellion in Gansu and Shaanxi during the Tongzhi reign, the total loss of Shaanxi Hui people was as high as 1,550,000, Hui people had only 150,000 left at the end of the war, over 91% of the initial people were vanished.
During the war, the loss of the Han Chinese population was much higher than Hui people(Total loss was 5.2 millions), but relatively speaking, because the percentage of Hui's population loss was so high(91%), the whole population was nearly wiped out, they were near the edge of extinction. Before the war, many counties had Hui people living quarters; none could be seen at the end of the war...Shaanxi province' composition of ethnic was changed drastically (by the war)....in the 1990 China's fourth National Census, there was only 132,000 Hui people in Shaanxi province. End of translation. Original Chinese text is on the talk page.
 Flight of the Dungans to the Russian Empire
The failure of the uprising led to some immigration of Hui people into the Imperial Russia. According to Rimsky-Korsakoff (1992), three separate groups of the Hui people fled to Russian Empire across the Tian Shan Mountains during the exceptionally severe winter of 1877/78:
The first group, of some 1000 people, originally from Turfan in Xinjiang, led by Ma Daren (马大人), also known as Ma Da-lao-ye (马大老爷), reached Osh in southern Kyrgyzstan.
The second group, of 1130 people, originally from Didaozhou (狄道州) in Gansu, led by ahong A Yelaoren (阿爷老人), were settled in the spring of 1878 in the village of Yardyk some 15 km from Karakol in Eastern Kyrgyzstan.
The third group, originally from Shaanxi, led by Bai Yanhu (白彦虎; also spelt Bo Yanhu; 1829(?)-1882), one of the leaders of the rebellion, were settled in the village of Karakunuz (now Masanchi), is modern Zhambyl Province of Kazakhstan. Masanchi is located on the northern (Kazakh) side of the Chu River, 8 km north from the city Tokmak in north-western Kyrgyzstan. This group numbered 3314 on arrival.
Another wave of immigration followed in the early 1880s. In accordance with the terms of the Treaty of Saint Petersburg signed in February 1881, which required the withdrawal of the Russian troops from the Upper Ili Basin (the Kulja area), the Hui and Taranchi (Uighur) people of the region were allowed to opt for moving to the Russian side of the border. Most choose that option; according to the Russian statistics, 4,682 Hui moved to Russian Empire under the treaty. They migrated in many small groups between 1881-83, settling in the village of Sokuluk some 30 km west of Bishkek, as well as in a number of points between the Chinese border and Sokuluk, in south-eastern Kazakhstan and northern Kyrgyzstan.
The descendants of these rebels and refugees still live in Kyrgyzstan and neighboring parts of Kazakhstan and Uzbekistan. They still call themselves the Hui people (Huizu), but to the outsiders they are known as Dungan, which means Eastern Gansu in Chinese.