1. Repent for the sake of God's name (1-13)
The Israelites faced the city of Ai. They felt confident in their own strength, not seeking God's strategy. The Israelites were soundly defeated and did not know why. Joshua and the leaders humbled themselves and prayed to God. Joshua was concerned about God's great name (9). God revealed that someone had disobeyed and taken devoted things. All the people needed to be consecrated newly to God. Only then would they be able to stand against their enemies and God's great name be glorified through them.
2. Joshua dealt with Achan's sin (14-26)
Joshua knew how serious this matter was before God. He wasted no time to find out that Achan was the culprit. Achan and all that he had, were destroyed. The Lord is very serious about his people obeying him with a pure heart. We obey God, and fight spiritual battles, not for personal gain, but for the sake of God's great name.