This paper analyzes the Jin Yong novel The Deer and the Cauldron through the lens of Etienne Balibar's theory of super-nationalism and supranationalism. The novel employs a pan-Asian racial ideology to expand national identity from Han Chinese to other ethnic groups (supranationalism) by introducing a racial Other, white Europeans, to unify warring groups. Simultaneously, Han culture is consistently uplifted as superior (super-nationalism). A critical sequence features the Kangxi Emperor asserting his legitimacy as the ruler of China to the protagonist Wei Xiaobao by claiming the Mandate of Heaven has passed from the Ming to the Qing dynasty. However, Han Chinese gallants and intellectuals constantly challenge his legitimacy because, as a Manchu, he is considered foreign. To resolve this issue, Wei Xiaobao begins constructing a racial national framework that includes Manchus. This paper further argues that Wei Xiaobao's moral relativism, unusual for a protagonist in martial arts fiction, enables the flexibility to redefine Chinese identity on racial grounds instead of moral or cultural. The Deer and the Cauldron illustrates the transition from the Mandate of Heaven to modern nation-state ideology in China, in the form of an irreverent martial arts fiction novel, crafted by the genre's greatest master.