Northern Song Dynasty, Ximen Qing, a lustful and wealthy merchant is dead. The grim reapers then escort him to the Palace of Yama in hell, the court of the lord of death. Yama immediately puts him on the last judgment.