And so did he to them, and saved them from the hand of the people of Israel, that they slew them not. And Joshua made them that day hewers of wood and drawers of water for the congregation, and for the altar of the Lord, even to this day, in the place which he should choose. Now it came to pass, when Adoni-Zedek king of Jerusalem had heard how Joshua had taken Ai, and had completely 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; That they feared greatly, because Gibeon was a great city, as one of the royal cities, and because it was greater than Ai, and all its men were mighty. And Adoni-Zedek king of Jerusalem sent to Hoham king of Hebron, and to Piram king of Jarmuth, and to Japhia king of Lachish, and to Debir king of Eglon, saying, Come to me, and help me, that we may strike Gibeon; for it has made peace with Joshua and with the people of Israel. Therefore the five kings of the Amorites, the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, the king of Eglon, gathered themselves together, and went up, they and all their armies, and encamped before Gibeon, and made war against it.