Since those in the city came out to intercept them, Ai’s army was hemmed in by Israelites on both sides, who cut them down without any fugitives or survivors
When Israel finished killing all the inhabitants of Ai in the open, who had pursued them into the wilderness, and all of them to the last man fell by the sword, then all Israel returned and put to the sword those inside the city.
He had the king of Ai hanged on a tree until evening; then at sunset Joshua ordered the body removed from the tree and cast at the entrance of the city gate, where a great heap of stones was piled up over it, which remains to the present day. Altar on Mount Ebal.
The beast was caught and with it the false prophet who had performed in its sight the signs by which he led astray those who had accepted the mark of the beast and those who had worshiped its image. The two were thrown alive into the fiery pool burning with sulfur.