After transmigrating into a poor scholar's body in the final years of the Ming dynasty, Shen Xi knows the country will fall in three years. Armed with knowledge from the future and political acumen, he rises to the top of the imperial examinations and becomes a grand secretary. He maneuvers through the court and commands strategy on the battlefield, dragging the collapsing Ming dynasty back onto the right track.