When Joshua and his men saw that his army had taken control of the city and that smoke was rising from it, they stopped running away and turned to fight the men of Ai.