Haman was a high official, in effect the prime minister, of the Persian king Ahasuerus, also known as Xerxes (reigned 485-465 BC - see Ancient Empires - Persia). Mordecai, the elder cousin of Esther, was a Jew who was loyal to the king of Persia, rather than to the arrogant, self-serving prime minister, Haman. For that, Haman sought to have Mordecai executed.
"5:13 Yet all this availeth me nothing, so long as I see Mordecai the Jew sitting at the king's gate. 5:14 Then said Zeresh his wife and all his friends unto him, Let a gallows be made of fifty cubits high, and to morrow speak thou unto the king that Mordecai may be hanged thereon: then go thou in merrily with the king unto the banquet. And the thing pleased Haman; and he caused the gallows to be made." (Esther 5:13-14 KJV)
"So they hanged Haman on the gallows that he had prepared for Mordecai"
Haman's obstacle in killing Mordecai involved the fact that Mordecai was more loyal to the king than Haman was - Mordecai had actually prevented an assassination of the king.
"6:1 On that night could not the king sleep, and he commanded to bring the book of records of the chronicles; and they were read before the king. 6:2 And it was found written, that Mordecai had told of Bigthana and Teresh, two of the king's chamberlains, the keepers of the door, who sought to lay hand on the king Ahasuerus.
6:3 And the king said, What honour and dignity hath been done to Mordecai for this?
Then said the king's servants that ministered unto him, There is nothing done for him.
6:4 And the king said, Who is in the court? Now Haman was come into the outward court of the king's house, to speak unto the king to hang Mordecai on the gallows that he had prepared for him.
6:5 And the king's servants said unto him, Behold, Haman standeth in the court.
And the king said, Let him come in.
6:6 So Haman came in. And the king said unto him, What shall be done unto the man whom the king delighteth to honour?
Now Haman thought in his heart, To whom would the king delight to do honour more than to myself?
6:7 And Haman answered the king, For the man whom the king delighteth to honour,
6:8 Let the royal apparel be brought which the king useth to wear, and the horse that the king rideth upon, and the crown royal which is set upon his head:
6:9 And let this apparel and horse be delivered to the hand of one of the king's most noble princes, that they may array the man withal whom the king delighteth to honour, and bring him on horseback through the street of the city, and proclaim before him, Thus shall it be done to the man whom the king delighteth to honour.
6:10 Then the king said to Haman, Make haste, and take the apparel and the horse, as thou hast said, and do even so to Mordecai the Jew, that sitteth at the king's gate: let nothing fail of all that thou hast spoken.
6:11 Then took Haman the apparel and the horse, and arrayed Mordecai, and brought him on horseback through the street of the city, and proclaimed before him, Thus shall it be done unto the man whom the king delighteth to honour.
6:12 And Mordecai came again to the king's gate. But Haman hasted to his house mourning, and having his head covered.
6:13 And Haman told Zeresh his wife and all his friends every thing that had befallen him.
Then said his wise men and Zeresh his wife unto him, If Mordecai be of the seed of the Jews, before whom thou hast begun to fall, thou shalt not prevail against him, but shalt surely fall before him.
6:14 And while they were yet talking with him, came the king's chamberlains, and hasted to bring Haman unto the banquet that Esther had prepared." (Esther 6:1-14 KJV)
Haman's personal hatred for Mordecai evolved into a genocide hatred toward all of the Jews in the kingdom. The only one who could stop it was Esther, herself a Jew, who made a direct appeal to stop Haman's plan (see the notes for Esther 8-10 to see how the people of Judah defended themselves - from which their Purim observance originated). Haman's gallows that he built to hang Mordecai became the place of execution for Haman himself.
"7:1 So the king and Haman came to banquet with Esther the queen.
7:2 And the king said again unto Esther on the second day at the banquet of wine, What is thy petition, queen Esther? and it shall be granted thee: and what is thy request? and it shall be performed, even to the half of the kingdom.
7:3 Then Esther the queen answered and said, If I have found favour in thy sight, O king, and if it please the king, let my life be given me at my petition, and my people at my request:
7:4 For we are sold, I and my people, to be destroyed, to be slain, and to perish. But if we had been sold for bondmen and bondwomen, I had held my tongue, although the enemy could not countervail the king's damage.
7:5 Then the king Ahasuerus answered and said unto Esther the queen, Who is he, and where is he, that durst presume in his heart to do so?
7:6 And Esther said, The adversary and enemy is this wicked Haman.
Then Haman was afraid before the king and the queen.
7:7 And the king arising from the banquet of wine in his wrath went into the palace garden: and Haman stood up to make request for his life to Esther the queen; for he saw that there was evil determined against him by the king.
7:8 Then the king returned out of the palace garden into the place of the banquet of wine; and Haman was fallen upon the bed whereon Esther was.
Then said the king, Will he force the queen also before me in the house?
As the word went out of the king's mouth, they covered Haman's face.
7:9 And Harbonah, one of the chamberlains, said before the king, Behold also, the gallows fifty cubits high, which Haman had made for Mordecai, who had spoken good for the king, standeth in the house of Haman.
Then the king said, Hang him thereon.
7:10 So they hanged Haman on the gallows that he had prepared for Mordecai. Then was the king's wrath pacified." (Esther 7:1-10 KJV)
Fact Finder: What did "hanging" mean in Bible History?