David summoned the Gibeonites and spoke with them. The Gibeonites were not Israelites, but what was left of the Amorites. The Israelites had sworn an oath to them, but in his nationalistic passion for the Israelites and Judah, Saul had tried to wipe them out.
Adoni-zedek, king of Jerusalem, learned that Joshua had captured Ai and destroyed the town completely, as he had also done to Jericho, and had killed its king, just as he had the king of Jericho. He also heard that the Gibeonites had made peace with the Israelites and were allied with them.