Celebrated Cases of Judge Dee, also known as Di Gong An or Dee Goong An [Địch Công Án), is an 18th-century Chinese gong’an detective novel by an anonymous author, "Buti zhuanren" (Chinese: 不题撰人). It is loosely based on the stories of Di Renjie (Địch Nhân Kiệt), a magistrate and statesman of the Tang court, who lived roughly 630–700. The novel contains cultural elements from later dynasties, rather than Tang Dynasty China, however. The Dutch sinologist and diplomat Robert van Gulik came across a copy in a second-hand book store in Tokyo and translated the novel into English. He then used it as the basis to create his own original Judge Dee stories (16 in total) over the next 20 years.