Wang Bin, a modern-day PhD, accidentally transmigrates to the Qingli era of the Northern Song dynasty and becomes a minor frontier official in Qingzhou. Armed with diverse knowledge of science, engineering, medicine, and literature, he applies scientific thinking to revolutionize the city's defenses, medicine, and military farming, and becomes a close friend of Fan Zhongyan, the commander stationed on the frontier. Faced with the cavalry of Western Xia and doubts from the court, the two wield technology as their blade and benevolent governance as their shield, building the defenses of Dashun City together and composing a song of wisdom and courage that spans a thousand years.