The Chinese Maze Murders
The Chinese Maze Murders is a gong'an historical mystery novel written by Robert van Gulik and set in Imperial China. It is a fiction based on the real character of Judge Dee (Ti Jen-chieh or Di Renjie - chin: 狄仁傑), a magistrate and statesman of the Tang court, who lived roughly 630–700. However, van Gulik's novel is set not in the Tang, but in the Ming Dynasty (1368–1644), with society and customs depicted in the book reflecting this period.
This was the first of the fictional mystery stories written by Robert van Gulik. It was based on three actual cases from Chinese criminal investigations. The author, having written the story in English, had it translated by a Japanese friend (Professor Ogaeri Yukio) into Japanese and it was sold in Japan under the title "Meiro-no-satsujin" in 1951. Then the author translated the book into Chinese himself and it was published by the Nanyang Press in Singapore in 1953. Finally Van Gulik published the English-language version in 1956. (See Forward to Chinese Maze Murders pgs. V-VI).
The three mysteries: "The Case of the Sealed Room", "The Case of the Hidden Testament", and "The Case of the Girl with the Severed Head" are all based on actual Chinese murder casebooks. The book contains a postscript by the author on the Chinese Imperial Justice system (something that Van Gulik was an expert on).
Read more or edit on Wikipedia