On one of the occasions when the virgins were being gathered together, Mordecai was sitting at the King's Gate.
All this time, Esther had kept her family background and race a secret as Mordecai had ordered; Esther still did what Mordecai told her, just as when she was being raised by him.
On this day, with Mordecai sitting at the King's Gate, Bigthana and Teresh, two of the king's eunuchs who guarded the entrance, had it in for the king and were making plans to kill King Xerxes.
But Mordecai learned of the plot and told Queen Esther, who then told King Xerxes, giving credit to Mordecai. When the thing was investigated and confirmed as true, the two men were hanged on a gallows. This was all written down in a logbook kept for the king's use.