So the king summoned the Gibeonites. They were not part of Israel but were all that was left of the nation of the Amorites. The people of Israel had sworn not to kill them, but Saul, in his zeal for Israel and Judah, had tried to wipe them out.
Adoni-zedek, king of Jerusalem, heard that Joshua had captured and completely destroyed Ai and killed its king, just as he had destroyed the town of Jericho and killed its king. He also learned that the Gibeonites had made peace with Israel and were now their allies.