In Chang'an during the prosperous Tang Dynasty, it was still difficult for women to practice medicine, and the road to forensic medicine was even more difficult. {Ran Yan} was born in a medical family, and her father was unjustly killed. In order to clear her father's name, she cut off her black hair, disguised herself as a man, and joined the Jingzhao Mansion as a widower under the pseudonym "Ayan". Relying on her family's medical skills and original autopsy methods, she has repeatedly solved strange cases, from unknown corpse cases to secret room murder cases. Every accurate autopsy points to the truth. The demoted prince Xiao Song was suspicious of her weirdness when they first met, but during the joint investigation, he was impressed by her talent and tenacity, and the two became the best partners. They broke through the obstruction of the powerful and the undercurrent of the harem, and gradually approached the core of their father's unjust case in complex cases involving the court. In the end, Ran Yan not only cleared her father's wrongdoing, but also used her strength to break gender prejudice and become the first officially recognized female forensic doctor in the Tang Dynasty.