Adoni-Zedek was the king of Jerusalem. He heard that Joshua had taken Ai. He found out that the city had been set apart to the LORD in a special way to be destroyed. He heard that Joshua had done to Ai and its king the same thing he had done to Jericho and its king. Adoni-Zedek heard that the people of Gibeon had made a peace treaty with Israel. He also found out that they were living among the people of Israel.