Complex sentence: When the child grew up the Chanyu gave him command in the west and as an act of revenge, the Wusun attack the Yuezhi, who had taken refuge in the Ili Valley.
Split into simpler sentences: When the child grew up the Chanyu gave him command in the west. As an act of revenge, the Wusun attacked the Yuezhi, who had taken refuge in the Ili Valley.