Detective Dee and the Mystery of the Phantom Flame《狄仁杰之通天帝国》 is a 2010 epic mystery film that is a fictional account of Di Renjie, one of the most celebrated officials of the Tang Dynasty. A co-production between China and Hong Kong, the film was directed by Tsui Hark(徐克Xú kè) from a screenplay written by Chen Kuofu.

The film stars Andy Lau(刘德华Liú déhuá) as the lead role, and features art direction and fight choreography by Sammo Hung. The film's supporting cast includes Carina Lau(刘嘉玲Liú jiālíng), Li Bingbing(李冰冰Lǐ bīngbīng), Deng Chao(邓超dèng chāo) and Tony Leung Ka-fai(梁家辉Liáng jiāhuī). Principal photography for Detective Dee began in May 2009; the film was shot at Hengdian World Studios in Zhejiang, China. Detective Dee was released in China on 29 September 2010 and in Hong Kong on 30 September 2010.

The film was nominated for the Golden Lion(金狮奖Jīnshī jiǎng) at the 2010 Venice Film Festival.The film also made its North America debut by premiering at the 2010 Toronto International Film Festival.