The Mad Monk (Chinese: 濟公; pinyin: Jì Gōng is a 1993 Hong Kong fantasy comedy film directed by Johnnie To, and starring Stephen Chow as the "Mad Monk" Ji Gong, a popular Chinese folklore figure from the Southern Song dynasty.
The film follows "Dragon Fighter Luohan" as he accepts a challenge from the gods to change the fate of a beggar, a prostitute, and a villain in three heavenly days.
The gods in Heaven complain to the Jade Emperor about the malicious practical jokes played on them by Dragon Fighter Lohan.
Jade Emperor issues Dragon a challenge: if he can change the fates of three people destined to nine incarnations in the same roles — a beggar, a prostitute, and a villain — he will not be punished.
Tiger enlists the aid of a heavenly soldier named Unicorn to help him take the magical fan to Dragon.
Dragon tries to instil dignity to Ta Chung, persuade Xiao Yu to change her trade, and Yuan to turn over a new leaf.
She agrees, but when Dragon begins to transform into a tree because of a prohibition against gods marrying mortals, she thinks he is playing a joke on her.
Guan Yin interrupts the festivities and shows how Dragon has succeeded in changing the fates of the three people: Ta Chung has regained his dignity, Xiao Yu has left prostitution behind and opened a bean curd restaurant, and Yuan has renounced violence to be reborn a pig.