This comes from the biblical Book of Esther. Haman, the wicked advisor to King Ahasuerus, was hanged on the gallows he built for Mordechai, a Jewish man who refused to bow to him.
Queen Esther, herself Jewish, exposed Haman's plot to exterminate the Jews. The king ordered Haman's execution on the 50-cubit (approx. 75-foot) gallows—a symbolic height representing Haman's pride and catastrophic fall.
The story is interpreted variously as historical narrative or allegory with religious/moral meanings.