Now Adoni-Zedek1 king of Jerusalem2 heard that Joshua had taken Ai3 and totally destroyed4 it, doing to Ai and its king as he had done to Jericho and its king, and that the people of Gibeon5 had made a treaty of peace6 with Israel and were living near them.
References for Joshua 10:1
He and his people were very much alarmed at this, because Gibeon was an important city, like one of the royal cities; it was larger than Ai, and all its men were good fighters.
So Adoni-Zedek king of Jerusalem appealed to Hoham king of Hebron,7 Piram king of Jarmuth,8 Japhia king of Lachish9 and Debir10 king of Eglon.11
References for Joshua 10:3
"Come up and help me attack Gibeon," he said, "because it has made peace12 with Joshua and the Israelites."
References for Joshua 10:4
Then the five kings13 of the Amorites14--the kings of Jerusalem, Hebron, Jarmuth, Lachish and Eglon--joined forces. They moved up with all their troops and took up positions against Gibeon and attacked it.
References for Joshua 10:5
The Gibeonites then sent word to Joshua in the camp at Gilgal:15 "Do not abandon your servants. Come up to us quickly and save us! Help us, because all the Amorite kings from the hill country have joined forces against us."
References for Joshua 10:6
So Joshua marched up from Gilgal with his entire army,16 including all the best fighting men.
References for Joshua 10:7