It is said that the righteous heroes of Liangshan Marsh gathered together, acting on behalf of Heaven, and their fame spread far and wide. And it is said that Xiao Xuanfeng Chai Jin, upon hearing that his uncle Chai Huangcheng was gravely ill, took leave of the various chieftains and went to Gaotang Prefecture to visit him. Chai Huangcheng told him that Yin Tianxi, the brother-in-law of the local prefect Gao Lian, had forcibly occupied his family's garden and was bullying the innocent. Chai Jin, furious beyond restraint, argued with Yin Tianxi, and in the heat of the quarrel, Chai Jin accidentally struck and killed him. Gao Lian, who happened to be the brother of Gao Qiu, flew into a rage upon hearing of this. Without distinguishing right from wrong, he subjected Chai Jin to false charges by torture and threw him into death row.
When Song Jiang and others of Liangshan learned of this, they were filled with righteous indignation. Dai Zong and Li Kui went first to investigate, and after confirming the truth, they reported back to Liangshan at top speed. Song Jiang slammed the table and rose to his feet. He mustered the cavalry and infantry and marched straight on Gaotang Prefecture. Upon receiving the report, Gao Lian drew up his troops in full battle readiness. The two armies faced off. Gao Lian rode out on horseback and employed sorcery, muttering incantations. Suddenly, black fog filled the air, and sand and stones flew about. The Liangshan generals were thrown into panic. Qin Ming, Hua Rong, Lin Chong, Li Kui, and others became trapped in the demonic fog. Song Jiang's main force suffered defeat in the first engagement and had no choice but to retreat.
Seeing that Gao Lian's sorcery was formidable and his generals were at a loss, Song Jiang consulted with the military counselor Wu Yong. Wu Yong said, 'Such black magic can only be broken by the Cloud-Entwining Dragon, Gongsun Sheng.' Song Jiang, upon hearing this, immediately sent the Magic Messenger Dai Zong and the Black Whirlwind Li Kui to Erxian Mountain in Jizhou to request that Gongsun Sheng return to Liangshan. Dai Zong and Li Kui traveled day and night to Jizhou and found the Taoist temple of the Immortal Luo.
Because Gongsun Sheng had previously left the mountain to join the band, the Immortal Luo did not permit him to return to Liangshan. Impetuous Li Kui began to cause a disturbance inside the temple, even swinging his double axes in an attempt to strike the Immortal Luo. The Immortal Luo, however, displayed his supernatural powers, trapping Li Kui in midair. He then used his arts to enlighten him, making him stop being reckless. Only then was Li Kui thoroughly convinced. Seeing this, the Immortal Luo allowed Gongsun Sheng to descend the mountain. He taught him the True Method of the Five Thunders and instructed him to help Song Jiang act on behalf of Heaven. Gongsun Sheng bid farewell to his master and, together with Dai Zong and Li Kui, returned, heading straight for Gaotang Prefecture.