The two battles at Ai raise a question I do not think we should rush past. How did Israel go from the unmistakable victory at Jericho to a humiliating defeat against a much smaller city, only to return and win? Joshua 6–8 shows us that God’s gifts cannot be separated from His holiness, but it also shows that failure does not have to be the end of the story.
Jericho and the First Defeat at Ai
We cannot understand Ai apart from Jericho. At Jericho, Israel saw a victory that clearly came from God. The people marched as He commanded, the walls fell, and they took the first fortified city in the land. Yet the LORD had also given a strict command. Jericho and its contents were devoted to Him. The precious metals were to enter His treasury, and Israel was not to take the devoted things for personal gain (Joshua 6:17–19).
Ai was smaller than Jericho and stood near Bethel. After the great victory, Joshua sent scouts to examine it. They judged it to be a manageable target and advised him that only two or three thousand men needed to go up because Ai’s population was small (Joshua 7:3). Scripture does not identify their reconnaissance or the size of the force as the sin. It plainly tells us why Israel failed: Achan had taken what God had forbidden.
I think this is an important detail that we should not overlook. It would be easy to turn the account into a warning against planning or using a small force, and we might even come away suspicious of practical judgment itself. Yet Joshua does not condemn reconnaissance; God condemns covenant treachery. Israel had learned that the land was a gift from the LORD, but at Ai they had to learn that they could not separate His gift from His holy character.
About three thousand men went up, but Ai’s defenders drove them back and killed about thirty-six Israelites. The survivors fled, and “the hearts of the people melted and became like water” (Joshua 7:5). The words reverse the fear that had fallen on Canaan before Israel’s God. Israel may have expected another easy advance after Jericho, but Ai proved that victory was never something they possessed automatically.
Joshua and the elders fell before the ark of the LORD until evening. Joshua tore his clothes and grieved. He asked why God had brought Israel across the Jordan only to allow this defeat. His prayer was honest, but the LORD told him to rise. The problem was not a lack of military power or a mistake in geography. Israel had sinned and broken the covenant (Joshua 7:10–11).
As I read Joshua’s response, I see something important about prayer. Grief and prayer are right when God’s people face disaster, but we must also remain willing to hear God’s answer. We may want the Lord to remove our pain while leaving untouched the disobedience He is exposing. Joshua could not lead Israel forward until he faced the problem God had revealed.
We must apply this part of the account carefully. Joshua received direct revelation about the cause of Israel’s defeat. Christians today should not tell a grieving family, a sick person, a struggling church, or a nation in crisis that hardship proves someone is hiding a particular sin. Job’s friends made that kind of judgment and spoke wrongly about God. Jesus also rejected the assumption that a man’s suffering always reveals a particular personal sin (John 9:1–3). Joshua 7 teaches us to take sin seriously. It does not give us permission to claim knowledge God has not given.
Hidden Sin and Covenant Judgment
The LORD said that Israel had taken what was devoted to Him. They had stolen and deceived, then placed those things among their own possessions. Achan, a man from the tribe of Judah, had seen a beautiful Babylonian garment along with silver and gold. He coveted them, took them, and hid them under his tent (Joshua 7:20–21).
The sequence lets us see how sin moves. A desire was entertained until God’s command was pushed aside. Achan then acted on that desire and tried to protect the act with secrecy. He had not merely picked up abandoned goods after a battle. The devoted things at Jericho belonged to the LORD under a direct command, so his theft was a betrayal of covenant loyalty. His secret act affected the whole nation because Israel was God’s covenant people and the LORD dwelt among them.
James describes the same inward movement. Each person is tempted when drawn away by his own desires and enticed. Desire gives birth to sin, and sin brings forth death (James 1:14–15). We do not answer temptation by pretending it is harmless. We bring desire under the Word of God before it becomes an act we are determined to conceal.
Hidden sin can damage a family or a workplace. It can wound friendships and harm a church’s witness. Paul uses leaven as a picture in 1 Corinthians 5 when he says, “A little leaven leavens the whole lump.” Known rebellion that a congregation tolerates can spread through the body. At the same time, the New Testament does not turn every private failure into a public spectacle. Christ calls His people to handle sin truthfully and wisely, with a real desire for restoration.
God instructed Joshua to sanctify Israel and bring the people forward in an orderly way, moving from tribe to family, then from household to the individual man. This process showed that Achan was not being chosen as a convenient scapegoat. God knew the hidden act and brought it into the light. When Joshua confronted Achan, he called him to give glory to the LORD and confess what he had done (Joshua 7:19).
After Achan confessed and the stolen objects were found, Israel carried Achan, the members of his household named in the account, his possessions, and the devoted items to the Valley of Achor. The judgment in Joshua 7 is severe. It belongs to Israel’s unique theocratic covenant setting. The LORD was directly governing a nation as it entered the land, and He carried out the judgment He had stated against covenant rebellion.
Christians must never use this passage to authorize violence or personal revenge. It does not permit anyone to punish another person’s family. The church is not ancient Israel under Joshua. A new-covenant congregation addresses known, serious, and unrepentant sin through biblical admonition. Removal from fellowship may become necessary, but the purpose still includes a desire for repentance and restoration (1 Corinthians 5; Galatians 6:1). Civil authorities have a different responsibility for public justice, and God alone judges every heart perfectly.
The severity of Ai still teaches a truth we need: God is holy, and rebellion does not become small simply because other people cannot see it. The name Achor means trouble, and the valley became a memorial of what sin had done. Even so, trouble would not be God’s final word over that place.
Restoration and the Second Battle
Joshua 8 begins with a fresh word from God:
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
The LORD did not abandon Israel after exposing their sin. Once the trespass had been handled according to His command, He renewed His promise and gave Joshua instructions for the next battle. This was mercy, but it did not deny the past. The thirty-six men who died in the first battle were not forgotten, and Achan’s sin was not treated as insignificant. God’s righteous discipline did not end in permanent rejection. He restored His people to obedience and led them forward.
Hosea later drew on the same place to describe hope:
I will give her her vineyards from there, and the Valley of Achor as a door of hope
God can make a place associated with judgment become the beginning of restoration for people who turn back to Him. That does not mean all consequences vanish. It means that sin and failure do not have the authority to keep a repentant person away from God’s mercy.
Believers need to hear that hope. Someone who confesses sin may fear that God will do nothing but keep pointing back to the past. Yet Scripture says that the Father disciplines His children for their good so that they may share His holiness (Hebrews 12:10). His correction is serious, but its purpose is restored fellowship and fruitful obedience.
For the second battle, the LORD gave Joshua a particular ambush plan. Israel would appear to flee as before and draw Ai’s men away from the city. Another force would wait behind Ai. Once the defenders pursued Israel, the waiting force would enter the city, take it, and set it on fire. The plan unfolded exactly as God had said. When the men of Ai turned and saw smoke rising, they had nowhere to escape (Joshua 8:14–22).
This victory did not come from a secret technique Christians can copy whenever life becomes difficult. The ambush was a historical military command given to Joshua for one battle. We should not turn it into an allegory about defeating temptation, demons, coworkers, or personal problems.
I think the actual lesson is stronger than any symbolic reading. Israel succeeded because the LORD spoke and Joshua obeyed, holding out his spear until the city was taken just as God commanded. The people did not manufacture victory; they received God’s direction and followed His Word. Obedience is not a formula that makes God serve our plans. It is the right response to the God who is faithful and wise.
One detail in Joshua 8 especially catches my attention. Unlike at Jericho, Israel was permitted to keep livestock and spoil from Ai (Joshua 8:2, 27). This helps me see again that Achan’s sin was not the possession of spoil under every circumstance. He took what God had specifically devoted to Himself at Jericho. God’s command, rather than human appetite, determines what belongs to Him and what He gives to His people.
The Law Read at Ebal and Gerizim
After the victory at Ai, Joshua did not hurry on to the next battle. He built an altar to the LORD on Mount Ebal and wrote a copy of the Law on stones. Israel offered burnt offerings and peace offerings, and Joshua read all the words of the Law before the assembly. Half of the tribes stood before Mount Gerizim and the other half before Mount Ebal, following Moses’ command about blessing and curse (Joshua 8:30–35; Deuteronomy 27).
This ceremony belongs in the account because Israel’s life in the land depended on covenant faithfulness. The altar declared that sinners could approach God only through the sacrifice He provided. The written Law placed God’s commands before the people. The blessings and curses reminded them that the LORD was not an accessory to their military goals. He was their King.
Joshua read the Law before the men and women, the little ones, and the foreigners living among them. God’s Word was not reserved for a small, educated group. The whole community needed to hear what He had said. After the disaster at Ai, this public reading became an act of worship and remembrance. It also renewed Israel’s submission to God.
Christians are not under Israel’s Mosaic covenant, and we are not commanded to repeat this ceremony. The underlying principle remains: God’s people need His Word. Church life cannot survive on techniques or personalities. Memories of past blessing cannot sustain it either. We need Scripture to be read and taught so that we can believe what God has said and obey Him. Jesus said that people live by every word that proceeds from the mouth of God (Deuteronomy 8:3; Matthew 4:4).
Applying Ai and Finding Hope in Christ
Ai warns us against presumption. Israel had seen God work at Jericho, but yesterday’s grace did not excuse today’s disobedience. Christians should remember what God has done without using past blessings to ignore His present commands. A successful ministry cannot replace a clean conscience before Him. Neither can family history, theological knowledge, or a respected reputation.
Ai also calls us to honest confession. When the Holy Spirit uses Scripture to expose sin, we should not hide it or blame someone else. Nor should we perform despair, as if appearing miserable could replace repentance. We confess the sin and turn from it. If the struggle requires help, we seek it. When we have wronged someone and restitution is possible, we take that step too. A mature church should make honesty easier by speaking the truth in gentleness. Its people can pray with us and provide wise accountability as we learn to walk faithfully.
The account also teaches dependence. We may plan responsibly, use sound judgment, and work hard. We must not lean on our own understanding as if strategy could secure God’s blessing. Proverbs 3:5–6 calls believers to trust the LORD with all their heart and acknowledge Him in all their ways. Dependence does not reject planning. It places every plan under God’s rule.
Ai also gives me hope after failure, even though sin can leave consequences that are painfully real. Trust may take a long time to rebuild, and some losses cannot be undone in this life. Still, Christ receives those who come to Him. He does not leave a repentant believer buried beneath an old defeat. He restores people to fellowship and teaches them how to walk forward in obedience.
Joshua 7 makes clear that sin brings judgment. No Israelite could remove the covenant curse by pretending it was not there. The gospel tells us that Jesus Christ did what no sinner could do. He is the eternal Son of God, fully God and fully man. He lived without sin and obeyed the Father perfectly.
At the cross, Jesus bore the punishment for our sins in His innocent body. He was physically tortured and shed His blood. He died and was buried. Galatians 3:13 says that Christ redeemed us from the curse of the Law, having become a curse for us, because it is written, “Cursed is everyone who hangs on a tree.”
Paul is not saying that Jesus became morally corrupt. Nor is he comparing Christ to one of Jericho’s devoted objects that Achan stole. Christ bore the judgment sinners deserved. On the third day, He rose bodily from the grave. Through faith in Him, sinners are forgiven and made new. They are brought into peace with God. This is the deepest restoration the battles at Ai can lead us to consider. A believer does not conquer sin with a battle plan of his own. He comes to the Savior for mercy and learns to walk by the Holy Spirit in obedience to God’s Word.
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 remind me that we cannot ask God to bless our direction while we knowingly push His Word aside. They also keep us from treating one defeat as the end, because the Lord brought Israel out of the Valley of Achor and led them back to worship and obedience. We should not use this account to explain every hardship or impose Israel’s covenant judgments on other people. Instead, it should lead us into honest confession and humble dependence on Scripture, with real hope in Jesus Christ. He bore the curse sinners deserved, and by His grace even a painful place of failure can become a door of hope and the beginning of a faithful next step.
