Now it came to pass, when Adoni-zedek king of Jerusalem had heard how Joshua had taken Ai, and had utterly destroyed it; as he had done to Jericho and her king, so he had done to Ai and her king; and how the inhabitants of Gibeon had made peace with Israel, and were among them;
Adoni-zedek, king of Jerusalem, heard that Joshua had taken Ai and had utterly destroyed it, doing to Ai and her king as he had done to Jericho and her king. Along with that news of victory came word that the inhabitants of Gibeon had made peace with Israel and were among them. The Gibeonites had secured that peace by deception, because they knew they could not resist Israel in battle. Israel's leaders had consented to the treaty without seeking counsel from the Lord.
The city is called Jerusalem, showing that name was already in use in Joshua's day, a name found in letters written about 1400 B.C. while Israel was still captive in Egypt. The time was when Palestine was tributary to Egypt after long rule as a province of Babylonia and was in a greatly disturbed state. The Khabiri, part of the Hebrew race, were pressing the Canaanites as enemies, and that divided and troubled condition made the land far more easily taken by Joshua. The conquest was led by Joshua, whose name means saviour, one of the two of his generation who wholly followed the Lord. He entered his greatest work at about eighty years of age, led Israel through the Jordan, divided the land for them, and set them to conquer all foes and find the promised rest with the Captain of Jehovah's hosts with him. The alarm came because Jericho, the first-fruit of that evil land, fell when God's invisible army leveled its walls. Ai, where Israel was first defeated for failing to trust, was then taken and completely destroyed with its king as Jericho had been with its king, while Gibeon had joined Israel in peace. The verse introduces the account of Israel's battles and the conquest of several small kingdoms in Canaan, whose peoples were not spared because allowing them to continue would have spread a like seed. It sets the scene for the battle at Gibeon, in that the king of Jerusalem suggested the league of five kings against Joshua. That league was broken up in the battle in which the Lord threw the enemy into confusion with hailstones and at Joshua's command the sun and moon stood still. The day was lengthened so Israel could finish its work, but it remained one day measured by the sun. Its unusual length did not change the succession of days or affect the seventh-day Sabbath. Gibeon, the setting of that battle with the five kings, was also the setting of Abner and Joab's encounter, Joab's killing of Amasa, and Solomon's vision and offering of a thousand burnt offerings.