Xiongnu
The Xiongnu () were a confederation of nomadic peoples who, according to ancient Chinese sources, inhabited the eastern Asian Steppe from the 3rd century BC to the late 1st century AD. Chinese sources report that Modu Chanyu, the supreme leader after 209 BC, founded the Xiongnu Empire.
Wusun
The Wusun subsequently took over the Ili Valley, expanding over a large area and trying to keep away from the Xiongnu. According to Shiji, Wusun was a state located west of the Xiongnu. When the Xiongnu ruler died, Liejiaomi refused to serve the Xiongnu. The Xiongnu then sent a force to against the Wusun but were defeated, after which the Xiongnu even more than before considered Liejiaomi a supernatural being, avoiding conflict with him.