History of Mongolia
Although the Xiongnu finally had been split into two parts in AD 48, the Xianbei (or Hsien-pei in Wade–Giles) had moved (apparently from the east) into the region vacated by the Xiongnu. The Xianbei were the northern branch of the Donghu (or Tung Hu, the Eastern Hu), a proto-Mongol group mentioned in Chinese histories as existing as early as the 4th century BC. The language of the Donghu is believed to be proto-Mongolic to modern scholars. The Donghu were among the first peoples conquered by the Xiongnu. Once the Xiongnu state weakened, however, the Donghu rebelled. By the 1st century AD, two major subdivisions of the Donghu had developed: the proto-Mongolic Xianbei in the north and the Wuhuan in the south.
Hexi Corridor
During the Han–Xiongnu War, Han China expelled the Xiongnu from the Hexi Corridor in 121 BCE and even drove them from Lop Nur when King Hunye surrendered to Huo Qubing in 121 BCE. The Han acquired a territory stretching from the Hexi Corridor to Lop Nur, thus cutting the Xiongnu off from their Qiang allies. Again, Han forces repelled a joint Xiongnu-Qiang invasion of this northwestern territory in 111 BCE. After 111 BCE, new outposts were established, four of them in the Hexi Corridor, namely Jiuquan, Zhangye, Dunhuang, and Guzang (Wuwei).
From roughly 115–60 BCE, Han forces fought the Xiongnu over control of the oasis city-states in the Tarim Basin. Han was eventually victorious and established the Protectorate of the Western Regions in 60 BCE, which dealt with the region's defense and foreign affairs.