Di Renjie
The Judge Dee character is based on the historical figure Di Renjie (c. 630 – c. 700), magistrate and statesman of the Tang court. During the Ming Dynasty (1368–1644) in China, a "folk novel" was written set in former times, but filled with anachronisms.