Joshua, fresh off the victories at Jericho and Ai, reviewed and renewed the covenant with Israel. Having learned a lesson at Ai, one would hope Joshua had learned his lesson. At Jericho, Joshua let God be his commander in chief. Fresh off this victory, he should have consulted God before his initial attack on Ai, but sadly, he did not. The result, defeat was snatched from the jaws of a sure victory.
All this should have cemented in Joshua the importance of allowing God to be the leader of Israel. But strangely, upon returning to Gilgal, they were tricked by a wile enemy.
Ephesians 6:13-18 describes to the Christian the whole armor of God. This armor can only be achieved by having a relationship with God. It can only help us when we are continually in communion with God. But Joshua, when faced with this wily foe, failed to take this simplest of requests to God and allow God to lead.
The enemy does not always come as a roaring lion or a serpent talking from a tree. Often he comes with deceit so subtle that we often miss it. All can look ligament, yet later we find out the truth and see that we have been tricked. This is why God invites us through a relationship and only through a relationship with Him to put on the whole armor of God. Then when the Gibeonites in our life come, we will rely upon God to show us the error.