When Joshua and his men saw that the others had taken the city and that it was on fire, they turned round and began killing the men of Ai.