When Dong Zhuo woke up, he went out of the garden and saw Lü Bu and Diao Chan embracing each other. Enraged, he shouted, 'You traitor, how dare you deceive me!' He then threw his halberd at Lü Bu. Lü Bu quickly fled as the halberd scraped past a pillar. Dong Zhuo chased after him, but Lü Bu escaped. Wang Yun heard of this and invited Lü Bu to a secret chamber, where he elaborated on Dong Zhuo's treachery, inciting Lü Bu's rebellious intent. Lü Bu, also furious over the matter of Diao Chan, harbored a deep hatred for Dong Zhuo and thus conspired with Wang Yun to assassinate him.
Wang Yun, along with Lü Bu, Shi Sunrui, and Dong Cheng, devised a plan to act when Dong Zhuo entered the court.
In the fourth month of the third year of the Chuping era, Dong Zhuo returned to Chang'an from Meiwu, intending to abdicate the throne. Wang Yun forged an imperial edict summoning Dong Zhuo to court for the abdication ceremony. Delighted, Dong Zhuo proceeded, but upon arriving in front of the Weiyang Palace, he saw the palace gates filled with banners and rows of swords and spears. Suspicious, Dong Zhuo wanted to retreat but was blocked by Shi Sunrui and Dong Cheng. Lü Bu appeared with hundreds of armored soldiers and declared in a stern voice, 'By imperial decree, I am here to punish the traitor!' Dong Zhuo was greatly alarmed and urgently called out to Lü Bu for help. Lü Bu said, 'The decree orders the punishment of the traitor—what does it have to do with me?' Thereupon, he thrust his halberd at Dong Zhuo. Dong Zhuo suffered severe injuries, and Li Su cut off his head. All the officials shouted, 'Long live the emperor!' Wang Yun ordered Dong Zhuo's head to be displayed as a warning, his clan to be exterminated in three degrees of kinship, and Chang'an to be pacified.
When Dong Zhuo's generals—Li Jue, Guo Si, Fan Chou, and Zhang Ji—heard the news, they were terrified and intended to disperse. However, Jia Xu advised them, 'If you lay down your arms and return to your fields, even a low-ranking officer could capture you. It would be better to gather troops, attack Chang'an, and avenge Dong Zhuo. If victorious, you can seize the capital and command the realm; if defeated, it will be no worse than dying later.' The generals followed his advice.
Li Jue and Guo Si assembled the Liangzhou troops, whose momentum grew formidable, and advanced on Chang'an. Trusting in Lü Bu's prowess, Wang Yun rejected Jia Xu's counsel to 'pardon Dong Zhuo's former subordinates to appease them' and instead expelled Jia Xu. The officials were terrified; Lü Bu engaged in battle multiple times but failed to achieve victory. The morale of the troops in the city began to waver.