Chen Yuan is a graduate student. After an unexpected car accident, he transmigrates to the Zhenguan era of the Tang dynasty and becomes the county magistrate of Lantian County. During his time there, he vigorously develops the economy. Recommended by Wei Zheng, he earns the trust and favor of Li Shimin.