Then the men in the city came out to engage them in battle, so they were now in the middle, with Israel on each side. Israel struck them down until neither survivors nor escapees were left.
When Israel completed killing all the inhabitants of Ai in the open wilderness where they had pursued them, and when all of them had finally fallen by the edge of the sword, all Israel returned to Ai and struck it with the edge of the sword.
The king of Ai hanged on a tree until evening. At sunset, Joshua commanded that the people take down the body from the tree and throw it down at the city gate. They erected a large heap of stones over it that remains to this day.
But the beast was captured and with him the false prophet who worked signs in his presence, by which he deceived those who received the mark of the beast and those who worshipped his image. These two were thrown alive into the lake of fire that burns with brimstone.