When Xu Xing, a modern cultural relic restorer, was repairing a "Star Atlas" from the Song Dynasty on a rainy night, he accidentally traveled to the reign of Renzong in the Northern Song Dynasty - she became a concubine of the Xu family who was "abandoned" by her fiancé's family, and the person who signed the divorce letter was none other than the youngest judge of the Astronomical Academy at that time.
Troubled times are about to begin, and the stars are changing. Xu Xing gets involved in the court affairs by relying on his modern astronomical knowledge and cultural relic restoration skills. He goes from "contractual cooperation" to "life and death" with Ji Yan, who is cold on the surface but actually hides the secrets of the star map. He searches for stars in Song poems and builds dreams in maneuvers. Finally, he discovers that their fate has been foreshadowed in the thousand-year star map.