Lu Yuan traveled through time and became the magistrate of Beiliang County, using modern knowledge to build a poor county into a strong city. Five years later, the empress Zhao Jianjia took her daughter Huanhuan to find a bride, and the two gradually fell in love. Lu Yuan relied on advanced technology to defeat the enemy many times, and his growing power aroused fear. Later, he joined hands to put down the rebellion, finally became the hegemon, and lived happily with the empress and daughter.