That night the king could not sleep, so the royal chronicles were read to him, and he learned that Mordecai had saved his life and had never been honored. Haman, arriving to ask for Mordecai’s death, was ordered to lead Mordecai through the city on the king’s horse in royal honor (Esther 6).
At Esther’s second banquet she asked the king for her life and the life of her people, and named Haman as the enemy. Haman was hanged on the gallows he had prepared for Mordecai (7:1-10).
The first decree could not be revoked, so a second decree allowed the Jews to defend themselves. Mordecai was raised to high honor, and the days were remembered as Purim, when sorrow was turned to gladness and mourning into a good day (8:1-10:3).