This article analyzes the legitimization attempts of Ming dynasty erotic fiction through the lens of the rewriting of the Ming erotic novellas Wushan qiyu 巫山奇遇 (Marvelous Encounters at the Shaman Mount ) and Tianyuan qiyu 天緣奇遇 (Celestial Destinies Remarkably Fulfilled). In these two works the legitimization unfolds through the framework of Zhu Yuanzhang's 朱元璋 (Emperor Ming Taizu 明太祖; r. 1368-1398) dynasty-founding war. The concrete method of exhibiting this legitimization in the novellas is the attainment of immortality by the protagonists and their display of divine sanction towards Zhu Yuanzhang. Thus, the political legitimacy of the founding of the Ming dynasty is utilized to verify the credibility of immortality. Furthermore, it is invoked to reconcile the tension between erotic depictions and Confucian morals. From a different perspective, this very same effort of legitimizing erotic fiction, however, also brings about a deeper subversiveness.