In 33 BCE, the Xiongnu ruler Huhanye asked the Han court for a marriage alliance. The palace lady Wang Zhaojun volunteered to go north and marry him. Emperor Yuan changed his reign title to Jingning. Peace between the Han and the Xiongnu lasted nearly half a century.