He was tasked with forging an alliance with the Yuezhi people against their common enemy, the Xiongnu.