Li Zhi began compiling the book in 1588, while living in a Buddhist monastery.
In 1602, after the imprisonment and suicide of Li Zhi, the book was proscribed and all copies were burned; this ban proceeded even into the Qing Dynasty.