Lin Yu, a young lawyer, fell into a career quagmire in modern society because he insisted on justice and refused to defend bad companies. An accident caused him to travel through time and become Su Yichen, a poor scholar in the Song Dynasty.
When he first arrived in the Song Dynasty, Su Yichen witnessed an unfair case in which local wealthy households bribed officials to seize land from civilians. With the help of modern legal knowledge, he stepped forward and successfully sought justice for the civilians. He rose to prominence and met Zhao Lingshuang, the daughter of an official. After that, he studied Song Law assiduously. Accompanied by Zhao Lingshuang, he combined modern logical reasoning with Song Law, assisted the government in solving many difficult cases, and became a high-profile litigant. However, as his fame grew, he offended powerful people for exposing corruption among high-ranking officials. He was severely suppressed. He was also framed for rebellion and imprisoned.
In prison, Su Yichen relied on his strong will and legal knowledge to find evidence to clear his grievances. Outside prison, Zhao Lingshuang and others were also working hard to rescue him. In the end, Zhao Lingshuang found key evidence and helped Su Yichen clear up the case. At this time, an accident gave Su Yichen a chance to return to modern times. However, after going through twists and turns, he finally made a difficult choice between his attachment to modern times and his many concerns about the Song Dynasty. He finally fell in love with the Song Dynasty and joined hands with Zhao Lingshuang to continue to fight for legal justice and social fairness.