After Chen Anning, who had a double degree in Chinese medicine and forensic medicine, died suddenly, he traveled through time and became the unpopular second lady of the imperial censor's palace in the Wei Dynasty. When she woke up, she was slandered as the murderer of the grandson of the eldest princess's palace. With her professional knowledge, she proved her innocence and pointed out the real culprit, which attracted the attention of Xie Xun, the young minister of Dali Temple. She was favored by the eldest princess and was invited to join Dali Temple. She was also named the head of Yong'an County. They thought they were out of trouble, but Chen's father suddenly died suddenly. During the investigation, the two men implicated Chen's father in his old crimes. In the end, they brought out the evidence of Duan Yongwei and his gang members in the Jinluan Palace. With the support of the royal family, they were brought to justice. The two also gradually fell in love while working together to solve the case, turning from allies into sympathetic partners.