The men who had captured the city also came out and attacked them. The men of Ai were caught between the battle lines of Israel. So Israel attacked them on both sides. None of them survived or escaped.
When the Lord your God gives them to you and you defeat them, destroy every one of them because they have been claimed by the Lord. Don’t make any treaties with them or show them any mercy.
When people say, “Everything is safe and sound!” destruction will suddenly strike them. It will be as sudden as labor pains come to a pregnant woman. They won’t be able to escape.
That same day Joshua captured Makkedah, and the Israelites killed its people and king with swords. He claimed them for the Lord by destroying them. There were no survivors. He did the same thing to the king of Makkedah that he had done to the king of Jericho.
When Joshua and all Israel saw that the men who had been hiding had captured the city and that it was going up in smoke, they turned and attacked the men of Ai.