The Battles at Ai: Why Israel Fell and How God Restored Them

by Joshua Andreasen | Founder of Unforsaken

Israel had just seen God give them victory at Jericho when the men of Ai sent their soldiers fleeing. The scouts had thought a small force would be enough, but about thirty-six men died in the retreat. Israel later returned and won. Joshua 6–8 shows what had to change before that return, and why restored hope did not erase the cost of disobedience.

Jericho and the First Defeat at Ai

At Jericho, Israel marched as the LORD commanded, the walls fell, and the city was taken. God had given instructions about its people and possessions before the battle. Rahab and those sheltered in her house were to be spared, while the city was devoted to judgment. Its silver, gold, bronze, and iron belonged in the LORD’s treasury (Joshua 6:17-19). The Israelites had no permission to take those things for themselves.

After that victory, Joshua sent scouts to Ai, near Bethel. They reported that only two or three thousand men would be needed because the city’s population was small (Joshua 7:3). About three thousand went up, but Ai’s men drove them back, killing about thirty-six Israelites. Fear spread through the camp: “the hearts of the people melted and became like water” (Joshua 7:5). The dread that the Canaanites had felt before Israel’s God now gripped Israel itself.

We might explain the defeat as poor planning or an overconfident decision to send too few soldiers. The chapter identifies a different cause. It begins by telling us that Achan took some of the devoted things and that the LORD’s anger burned against Israel. Joshua was still unaware of the theft when he prayed, but the opening verse tells us why Israel could not stand before its enemies.

Joshua tore his clothes, and he and the elders fell before the ark until evening. He lamented the defeat and asked why God had brought Israel across the Jordan if they were going to perish. He feared that the surrounding peoples would hear of the retreat, surround Israel, and destroy them. He also asked what God would do for His great name. The LORD’s answer required Joshua to get up and confront the covenant violation: Israel had sinned, stolen the devoted things, and concealed them among their possessions (Joshua 7:6-12).

God had not failed to keep His promise about the land. Israel had violated His commands. Their previous victory did not exempt them from correction or give them the right to presume on His presence. Joshua needed to respond to what God revealed before leading another attack.

Hidden Sin and Covenant Judgment

The LORD instructed Joshua to sanctify the people, setting them apart in preparation to appear before Him. Under God’s direction, Israel was brought forward by tribe, then by family and household, until Achan of Judah was identified. Joshua appealed to him to give glory to the LORD by telling the truth about what he had done (Joshua 7:13-19). God had exposed the offender; the nation was not choosing someone convenient to blame.

Achan confessed that he had seen a beautiful Babylonian garment, silver, and gold. He coveted them, took them, and buried them in his tent. Joshua sent messengers, who found the objects where Achan said they were and laid them before the LORD (Joshua 7:20-23). Achan had treated goods reserved by God’s command as possessions he could secretly acquire for himself.

Israel then brought Achan, the stolen objects, his property, and his sons and daughters to the Valley of Achor. The account records his stoning, followed by plural language about stoning and burning. It is commonly understood to include judgment on his household, though readers differ over the children’s part in the punishment. The passage gives neither their ages nor an account of their involvement in the theft. We should not invent their complicity or claim details about their innocence that the text does not supply. A heap of stones marked the judgment, and the LORD turned from His anger (Joshua 7:24-26).

This was a severe judgment within Israel’s covenant life as God brought the nation into the land. Achan’s act affected people beyond himself, including soldiers who did not know what he had hidden. We should face that severity without turning it into permission for a church to punish offenders or their families violently. The church has not been commissioned to carry out Joshua’s conquest or repeat this judgment.

The New Testament directs a congregation to address known, serious, unrepented sin through admonition and, when necessary, removal from fellowship. Paul used the picture of leaven in 1 Corinthians 5: “A little leaven leavens the whole lump.” Tolerating rebellion affects others, and concealing harm is no service to the church. Galatians 6:1 also calls for restoring the person who has sinned in a spirit of gentleness. We must speak truth and protect people from harm while seeking the offender’s repentance. Civil authorities have a distinct responsibility for public justice. Neither church discipline nor civil authority gives us God’s knowledge of hidden things.

Achan’s confession traces his theft back to coveting. James 1:14-15 describes desire enticing a person, giving birth to sin when he yields, and sin bringing death. Seeing something attractive is not itself the same as choosing to steal it. Achan allowed his desire for the objects to override a command he knew, then concealed what he had done. If I keep dwelling on money I could obtain dishonestly, I need to confront that desire before I start planning how to get it and hide it.

Hidden wrongdoing can damage a family, a workplace, or a congregation long before everyone understands its source. Yet that does not mean every hardship proves that someone is concealing a particular sin. We know the cause of Israel’s defeat because God told Joshua. Job’s friends wrongly assumed that suffering exposed hidden wickedness, and Jesus rejected a similar assumption about a man’s blindness in John 9:1-3. I need to respond to known sin without pretending that a difficult circumstance gives me a revelation about someone else’s guilt.

Restoration and the Second Battle

After the judgment, Joshua received a fresh command and promise:

Do not be afraid, nor be dismayed; take all the people of war with you, and arise, go up to Ai. See, I have given into your hand the king of Ai, his people, his city, and his land

Joshua 8:1

The LORD had exposed Israel’s trespass without permanently rejecting the nation. He directed Joshua to take the fighting men and place an ambush behind Ai. He also permitted them to keep the city’s livestock and spoil this time (Joshua 8:2).

Joshua arranged for men to wait behind the city while he approached with the main force. The plan was to draw Ai’s defenders out by appearing to flee as Israel had fled in the first battle. When the king of Ai came out against them, he did not know an ambush was waiting. The pursuit took his men away from the city and left it exposed (Joshua 8:3-17).

The LORD told Joshua to stretch his spear toward Ai. As Joshua did so, the ambush rose, entered the city, and set it on fire. The men pursuing Israel saw smoke behind them as the Israelites who had seemed to flee turned back against them. The Israelite ambush force came out of Ai and joined the attack from the other side, leaving the defenders trapped between them (Joshua 8:18-22).

Israel captured the king of Ai alive and killed the remaining inhabitants. The account gives twelve thousand men and women as the total killed at Ai that day. Joshua kept his spear extended until the inhabitants had been destroyed. Ai was burned, and its king was hanged on a tree. At sunset Joshua had the corpse removed and placed at the city gate beneath a heap of stones (Joshua 8:23-29).

Israel also took the livestock and spoil as the LORD had permitted. The difference from Jericho helps explain Achan’s offense. Possessing such goods was not always forbidden, but taking them against God’s express command was. Achan’s desire could not give him a right to what God had withheld.

We should not reduce Ai’s destruction to a cheerful lesson about winning our personal battles. God had commanded this conquest as judgment on the city, and Joshua’s obedience included carrying out that command. These instructions belonged to that particular battle. They do not give Christians a technique for defeating whatever person or difficulty stands in our way.

Israel’s second advance succeeded under the LORD’s direction after the covenant violation had been addressed. God restored their ability to proceed, but the second victory did not bring back the soldiers killed in the first defeat or undo Achan’s judgment.

The Law Read at Ebal and Gerizim

After Ai, Joshua built an altar to the LORD on Mount Ebal in obedience to Moses’ command. Israel offered burnt offerings and peace offerings, and Joshua wrote a copy of the Law on stones. Half the people stood before Mount Gerizim and half before Mount Ebal, and he read the words of blessing and curse (Joshua 8:30-35; Deuteronomy 27). Winning the battle had not released Israel from its obligation to worship and hear the LORD.

At the altar, Israel approached God through the sacrifices He had prescribed. In the reading of the Law, they heard the commands by which they were to live. The land was His gift, and they were accountable to Him for what they did within it. He was not simply supplying military success while leaving them free to choose their own terms.

The whole community heard the reading, including women, little ones, and foreigners living among Israel. Scripture was not reserved for leaders who would decide what everyone else needed to know. After the defeat, judgment, and victory, the assembly was brought before God’s Word. They needed to hear its commands and its warnings together.

We are not under Israel’s Mosaic covenant or required to reproduce this ceremony. We do share the need to hear what God has said. A congregation cannot replace the reading and teaching of Scripture with techniques, forceful personalities, or memories of earlier blessings. Jesus answered temptation with the truth that people live by every word proceeding from God’s mouth (Deuteronomy 8:3; Matthew 4:4). We need that Word to correct our plans as well as encourage our hopes.

Applying Ai and Finding Hope in Christ

Victory at Jericho did not give Israel permission to disobey God. Nor can past service excuse dishonesty in a believer’s life. A respected ministry role, a family known for faithfulness, or extensive theological knowledge can coexist with conduct that needs to be confessed and forsaken. If Scripture has exposed a wrong, I should not try to balance it against the good things people remember about me.

Joshua’s response also teaches me to listen when I pray. He brought his grief and fear before God, then had to act on the answer he received. When the Spirit uses Scripture to expose my sin, asking for relief from its consequences cannot replace repentance. I need to admit what I have done, stop excusing it, and seek to repair the harm where possible. Wise believers can help through truthful correction, prayer, and practical accountability.

Depending on God does not require abandoning sound judgment. Scouting and planning were not the cause God gave for the first defeat, and a carefully arranged ambush was part of the second battle. Proverbs 3:5-6 calls us to trust the LORD and acknowledge Him in all our ways. Responsible planning belongs under His authority. I can work carefully while remaining willing to change a plan that requires something He forbids.

God later spoke of hope through the very place associated with Achan’s judgment. Centuries after Joshua, Hosea used the Valley of Achor, whose name means trouble, in a promise of Israel’s restoration:

I will give her her vineyards from there, and the Valley of Achor as a door of hope

Hosea 2:15

Hosea was speaking of God’s future mercy toward His people, not announcing a reversal of Achan’s sentence. A place associated with trouble would become a door of hope. That promise shows that God’s judgment has not exhausted His mercy. Forgiveness, however, does not automatically remove every consequence of sin. Trust may take years to rebuild, and some losses cannot be repaired in this life.

Paul explains in Hebrews 12:10 that the Father disciplines believers for their good so they may share His holiness. Knowing His purpose gives repentant believers reason to return to Him instead of assuming He will only rehearse their failures. Restored fellowship with God includes learning obedience with the help He provides, accepting the consequences of our actions, and seeking to repair what we have damaged.

Our need goes beyond recovering from a defeat. Sin brings guilt and judgment that a more ingenious plan cannot remove. Jesus Christ is the eternal Son of God, fully God and fully man, who lived without sin and obeyed the Father perfectly. He came to save sinners who could not make themselves clean.

On the cross, Jesus voluntarily gave Himself to be slain as the perfect sacrifice for our sins. Wicked men inflicted His bodily suffering, and He willingly shed His blood and died. His saving sacrifice was complete at His death, before His burial and bodily resurrection on the third day. Paul says in Galatians 3:13 that Christ redeemed us from the curse of the Law by becoming a curse for us, citing the words, “Cursed is everyone who hangs on a tree.”

Paul points to the shameful death Jesus endured on the cross for us. I do not understand him to mean that Christ became morally corrupt or that the Father turned against His Son. The Father did not punish, curse, abandon, strike, bruise, or pour wrath on Jesus. Father, Son, and Holy Spirit were united in saving sinners. Nor should we compare the innocent Savior with the stolen objects Achan hid; Christ willingly gave Himself so that we could be redeemed from condemnation.

Christ’s provision is for the whole world, and God genuinely offers forgiveness to every person. His grace can be resisted, but everyone who repents and believes in Christ receives forgiveness and new life. The Holy Spirit indwells and seals the believer, making him secure in Christ. Obedience is the response of that new life, not a way to earn forgiveness or keep ourselves saved. We have reason to leave concealment behind and walk in the light before the Savior who has shown us mercy.

Related Studies

The Sin of Achan examines Achan’s covenant trespass, confession, judgment, and the warning against hidden sin.

Mount Ebal and Mount Gerizim explores the covenant setting of blessing and curse, the altar, and Israel’s hearing of God’s Law.

Repentance explains confession and a biblical turning from sin toward God.

The Law considers the purpose of God’s Law in exposing sin and pointing people to Christ.

My Final Thoughts

The battles at Ai make me ask whether I want God’s help while knowingly disregarding His Word. Israel had to face the covenant violation before advancing again, and the victory that followed did not erase the cost of that sin. When Scripture corrects me, I need to respond honestly. I cannot use Israel’s defeat to explain every hardship or claim authority to repeat its covenant punishments today. Christ receives those who turn to Him, so we can trust His cleansing and begin to obey without hiding what He has exposed.