In 129 BCE, during the reign of Emperor Wu, the Xiongnu nomadic empire attacked the Han. Liu Fei volunteered to join the counterattack against Xiongnu, but his request was denied by the emperor.