Yehoshua sends spies to check how difficult it would be to conquer Ai. The spies report that Ai is small and easy to defeat. However, when Yehoshua attacks Ai with some soldiers, they are defeated and 36 men are killed. It is revealed that someone from Yericho, Achan, had stolen valuables that they were not supposed to take. Achan admits what he did and is executed for disobeying God's command. Yehoshua then leads another attack on Ai and they are successful in conquering the city with God's help.