Nolan Nash, a modern doctor, travels back to the Southern Liang Dynasty. He becomes an Unregistered Resident due to administrative policies and lives trapped in a mountain village for 18 years. By chance, he saves Empress Charlotte Chow, who was fleeing in disguise after an assassination attempt. The two pretend to be a married couple and travel to the capital. Relying on his advanced knowledge, Nolan uses ointments, Repeating Crossbows, and gunpowder to fend off multiple assassination attempts by Prince Jasper Chow. After arriving in the capital, he wows everyone at a poetry gathering, and foils Prince Jasper's plot to hoard grain and drive up rice prices. After passing practical assessments, Nolan tops the imperial examination. When he appears before the Golden Throne Hall, he realizes to his shock that the "My Lady Charlotte" he has been living with is none other than the reigning empress.