During the
Ming dynasty, the imperial court is riddled with corruption. Qinglong, a commander of the
jinyiwei, an elite secret service trained from childhood, is ordered by the powerful eunuch Jia Jingzhong to retrieve a box allegedly containing evidence of treason. Qinglong instead discovers it holds the
Imperial Seal, which Jia Jingzhong intends to use to legitimise a coup in support of the exiled Prince Qing. Branded a traitor, Qinglong is betrayed by his fellow jinyiwei, including his brother-in-arms Xuanwu, and forced to flee the capital while being pursued by Prince Qing's goddaughter, the highly-skilled warrior Tuo-Tuo. Wounded and unable to escape the city, Qinglong takes refuge with a struggling private security company. Concealed in a wedding caravan, he escapes the capital alongside Qiao Hua, the daughter of the company's owner. When Qinglong's identity as a renegade jinyiwei is revealed, he takes Qiao Hua hostage in order to continue his mission. At
Yanmen Pass, Qinglong uncovers evidence that Prince Qing's faction plans to sell border provinces to fund their coup. He forms a temporary alliance with a bandit gang led by Damo Panguan to raid the outpost holding the conspirators' forces. The raid succeeds, and Qinglong defeats Xuanwu, recovering the Imperial Seal. Tuo-Tuo later kidnaps Qiao Hua, forcing Qinglong to surrender the Imperial Seal to save her. Determined to stop the coup, Qinglong continues pursuing Prince Qing's forces while arranging for Qiao Hua to carry the seal to the authorities. In a series of ambushes, Qinglong eliminates the remaining conspirators, killing Xuanwu after a final betrayal. Damo Panguan also sacrifices himself to allow Qiao Hua to escape from Tuo-Tuo. Qinglong confronts Tuo-Tuo in a final duel at an abandoned temple. Mortally wounded, he uses his mechanical box of 14 blades to kill her, dying in the process. In the aftermath, Prince Qing's coup fails and he commits suicide. Qiao Hua inherits her father's private security company and continues travelling the desert routes. In the film's closing moments, she glimpses a distant figure resembling Qinglong, leaving his fate ambiguous. == Cast ==