1Adoni-zedek king of Jerusalem heard that Joshua had captured Ai and devoted it to destruction, doing to Ai and its king what he had done to Jericho and its king. He also heard that the inhabitants of Gibeon had made peace with Israel and were living among them. 2They were very afraid, because Gibeon was a great city, like one of the royal cities. It was larger than Ai, and all its men were warriors. 3So Adoni-zedek king of Jerusalem sent word to Hoham king of Hebron, Piram king of Jarmuth, Japhia king of Lachish, and Debir king of Eglon: 4“Come up and help me strike Gibeon, because it has made peace with Joshua and the Israelites.” 5So the five Amorite kings, the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon, gathered together and went up with all their armies. They camped against Gibeon and fought against it.
6The men of Gibeon sent word to Joshua in the camp at Gilgal: “Do not withdraw your hand from your servants. Come up to us quickly! Save us and help us, because all the Amorite kings who live in the hill country have gathered against us.” 7Joshua went up from Gilgal with the whole fighting force and all the able warriors. 8The LORD told Joshua, “Do not be afraid of them, because I have handed them over to you. Not one of them will stand before you.”
9Joshua came upon them suddenly, having marched up from Gilgal all night. 10The LORD threw them into confusion before Israel and struck them a heavy blow at Gibeon, pursuing them along the road up to Beth-horon and striking them as far as Azekah and Makkedah. 11As they fled from Israel down the slope of Beth-horon, the LORD hurled great stones from the sky at them as far as Azekah, and they died. More died from the hailstones than the Israelites killed with the sword.
12On the day the LORD gave the Amorites over before the Israelites, Joshua spoke to the LORD. In the sight of Israel he said, “Sun, stand still over Gibeon, and moon, over the Valley of Aijalon.” 13The sun stood still and the moon stopped, until the nation took vengeance on its enemies.
Isn’t this written in the Book of Jashar? The sun stood in the middle of the sky and did not hurry to set for about a whole day. 14There was no day like it before or since, when the LORD listened to the voice of a man. For the LORD fought for Israel. 15Then Joshua and all Israel with him returned to the camp at Gilgal.
16Now those five kings fled and hid in a cave at Makkedah. 17Joshua was told, “The five kings have been found hiding in the cave at Makkedah.” 18Joshua said, “Roll large stones against the mouth of the cave and station men there to guard them. 19But you, don’t stop! Chase your enemies and strike them from behind. Don’t let them reach their cities, for the LORD your God has handed them over to you.”
20Joshua and the Israelites finished striking them with a very heavy blow until their forces were spent. Those who escaped alive reached the fortified cities. 21All the people returned safely to Joshua at the camp at Makkedah. No one sharpened his tongue against any of the Israelites.
22Joshua said, “Open the mouth of the cave and bring those five kings out of the cave to me.” 23They did so, bringing the five kings out of the cave to him: the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon. 24When they brought the kings out to Joshua, he called for all the men of Israel and told the commanders of the fighting men who had gone with him, “Come here and put your feet on the necks of these kings.” They came forward and put their feet on their necks. 25Joshua said to them, “Do not be afraid or lose heart. Be strong and courageous, for this is what the LORD will do to all the enemies you fight.” 26Afterward Joshua struck them down and killed them, then hung them on five trees. They were left hanging on the trees until evening. 27At sunset Joshua gave the order, and they took them down from the trees and threw them into the cave where they had hidden. They put large stones at the mouth of the cave, and there they remain to this very day.
28Joshua captured Makkedah that day and struck it and its king with the sword. He devoted them and everyone in the city to destruction, leaving no survivor. He did to the king of Makkedah what he had done to the king of Jericho.
29Then Joshua and all Israel with him went on from Makkedah to Libnah and fought against it. 30The LORD handed it and its king over to Israel too. Israel struck the city and everyone in it with the sword, leaving no survivor. They did to its king what they had done to the king of Jericho.
31Joshua and all Israel with him went on from Libnah to Lachish. They camped against it and fought against it. 32The LORD handed Lachish over to Israel, and they captured it on the second day. They struck it and everyone in it with the sword, just as they had done to Libnah. 33Then Horam king of Gezer came up to help Lachish, but Joshua struck him and his people down, leaving him no survivor.
34Joshua and all Israel with him went on from Lachish to Eglon. They camped against it and fought against it. 35They captured it that day and struck it with the sword. That day Joshua devoted everyone in it to destruction, just as he had done to Lachish.
36Joshua and all Israel with him went up from Eglon to Hebron and fought against it. 37They captured it and struck it, its king, all its towns, and everyone in it with the sword. Joshua left no survivor, just as he had done at Eglon. He devoted it and everyone in it to destruction.
38Then Joshua and all Israel with him turned back to Debir and fought against it. 39He captured it, its king, and all its towns. They struck them with the sword and devoted everyone in the city to destruction. He left no survivor. He did to Debir and its king as he had done to Hebron and as he had done to Libnah and its king.
40So Joshua struck the entire land: the hill country, the Negev, the foothills, and the slopes, along with all their kings. He left no survivor, devoting everything that breathed to destruction, as the LORD, the God of Israel, had commanded. 41Joshua struck them from Kadesh-barnea to Gaza, and all the land of Goshen as far as Gibeon. 42Joshua captured all these kings and their land in a single campaign, because the LORD, the God of Israel, fought for Israel. 43Then Joshua and all Israel with him returned to the camp at Gilgal.