Dzungar (also Jungar or Zungar; Mongolian: Зүүнгар Züüngar) is the collective identity of several Oirat tribes that formed and maintained the last nomadic empire in East Turkestan (now known as Xinjiang) from the early 17th century to the middle 18th century.
According to oral history, the Olöt and Derbet tribes are the successor tribes to the Naiman, a Turco-Mongol tribe that roamed the steppes of Central Asia during the era of Genghis Khan. The Olöt shared the clan name Choros with the Dörbed and their ancestral legend resembles that of the Uyghur royal family.
At the beginning of the 17th century, a young leader named Khara Khula emerged to unite the Oirats to fight Sholui Ubashi Khong Tayiji, the first Altan Khan of the Khalkha. He was a direct descendant of Esen Tayishi and, like Esen, was also the Tayishi of the Olöt tribe. Khara Kula united the Olöt, Derbet and Khoit tribes, thus forming the Dzungar nation. As the leader of three tribes, Khara Khula could only assumed the title Khong Taiji (Supreme Chief). During this era, only the leader of the Khoshot tribe could claim the title of Khan.
Early in his reign in 1606, Khara Khula united the Oirats to fight the Altan Khanate of Sholui Ubashi Khong Tayiji who years earlier expelled the Oirats from their home in the Kobdo region in present-day northwest Mongolia. By 1609, Khara Khula won a decisive victory over the Altan Khanate, forcing Sholui Ubashi Khong Tayiji to withdraw his East Mongol forces from Oirat territory. But the unity dissolved after the victory, as the Oirat Tayishis resumed their traditional ways, favoring complete freedom of action.
The Oirats were under the dominion of Jasaghtu Khan of the Khalkha. Khara Khula seems to have resisted against the Khalkha. In 1623 the Oirat confederation killed Ubashi Khong Tayiji, the first Altan Khan of the Khalkha and gained independence.
In 1636 his son, Erdeni Baatur, joined the Oirat expeditionary force to Tibet, which was led by Güshi Khan of the Khoshot tribe, and assumed the title Khong Tayiji. After he returned to Dzungaria, the Dzungars rapidly gained strength. He made three expeditions against the Kazakhs.
In 1653 his son Sengge succeeded the Dzungars chief, but an internal strife with his half brother Chechen Tayiji involved the Khoshuud. With the support of Ochirtu Khan of the Khoshuud, this strife ended with Sengge's victory in 1661. In 1667 he captured Erinchin Lobsang Tayiji, the third and last Altan Khan. He was killed by Chechen Tayiji in a coup in 1670.
Sengge's younger brother Galdan immediately returned to lay life and took revenge on Chechen. As a Buddhist priest, Galdan had been to Tibet at the age of thirteen and had trained under the fourth Panchen Lama and then the Fifth Dalai Lama. In 1671 The Dalai Lama bestowed the title of Khan on him. He came into conflict with Ochirtu Khan. The victory over Ochirtu in 1677 resulted in the establishment of hegemony over the Oirats. In the next year the Dalai Lama gave the highest title of Boshughtu Khan to Galdan.
Many Nyingmapa and Bonpos were executed and Tibetans visiting Dzungar officials were forced to stick their tongues out so the Dzungars could tell if the person recited constant mantras (which was said to make the tongue black or brown). This allowed them to pick the Nyingmapa and Bonpos, who recited many magic-mantras. This habit of sticking one's tongue out as a mark of respect on greeting someone has remained a Tibetan custom until recent times.
A second, larger, expedition sent by Emperor Kangxi expelled the Dzungars from Tibet in 1720 and the troops were hailed as liberators. They brought Kelzang Gyatso with them from Kumbum to Lhasa and he was installed as the seventh Dalai Lama in 1721.
The Manchus filled in the depopulated area with immigrants from many parts of their empire, but a century later the Muslim Rebellion ravaged the same region.