Shen Hanzhou, a graduate student in the history department, traveled through time and became the prince-consort of the Ning Kingdom in the Hongwu Dynasty. When he woke up, he met Zhu Yuanzhang who arrived late at night because the imperial doctor predicted that the princess would die within 20 days. He used "ancient books" to identify the princess's cold poison, predicted the calamity of the Jin Dynasty, and also proposed to build a steam engine. He won Zhu Yuanzhang's support but was monitored by the Jin Yiwei, and a storm began that would rewrite the fate of the Ming Dynasty.