In 133 BC, at the suggestion of Wang Hui, the minister of vassal affairs, Emperor Wu had his army set a trap for the Xiongnu Shanyu at the city of Mayi.
The plan failed, ironically, because the Han ambush was made to look too attractive.