10 When Adoni-zedek, the king of Jerusalem, heard how Joshua had captured and destroyed Ai and had killed its king, the same as he had done at Jericho, and how the people of Gibeon had made peace with Israel and were now their allies, 2 he was very frightened. For Gibeon was a great city—as great as the royal cities and much larger than Ai—and its men were known as hard fighters. 3 So King Adoni-zedek of Jerusalem sent messengers to several other kings: King Hoham of Hebron, King Piram of Jarmuth, King Japhia of Lachish, King Debir of Eglon.
4 “Come and help me destroy Gibeon,” he urged them, “for they have made peace with Joshua and the people of Israel.”
5 So these five Amorite kings combined their armies for a united attack on Gibeon. 6 The men of Gibeon hurriedly sent messengers to Joshua at Gilgal.
“Come and help your servants!” they demanded. “Come quickly and save us! For all the kings of the Amorites who live in the hills are here with their armies.”
7 So Joshua and the Israeli army left Gilgal and went to rescue Gibeon.
8 “Don’t be afraid of them,” the Lord said to Joshua, “for they are already defeated! I have given them to you to destroy. Not a single one of them will be able to stand up to you.”
9 Joshua traveled all night from Gilgal and took the enemy armies by surprise. 10 Then the Lord threw them into a panic so that the army of Israel slaughtered great numbers of them at Gibeon and chased the others all the way to Beth-horon and Azekah and Makkedah, killing them along the way. 11 And as the enemy was racing down the hill to Beth-horon, the Lord destroyed them with a great hailstorm that continued all the way to Azekah; in fact, more men died from the hail than by the swords of the Israelis.
12 As the men of Israel were pursuing and harassing the foe, Joshua prayed aloud, “Let the sun stand still over Gibeon, and let the moon stand in its place over the valley of Aijalon!”
13 And the sun and the moon didn’t move until the Israeli army had finished the destruction of its enemies! This is described in greater detail in The Book of Jashar. So the sun stopped in the heavens and stayed there for almost twenty-four hours! 14 There had never been such a day before, and there has never been another since, when the Lord stopped the sun and moon—all because of the prayer of one man. But the Lord was fighting for Israel. 15 (Afterwards Joshua and the Israeli army returned to Gilgal.)
16 During the battle the five kings escaped and hid in a cave at Makkedah. 17 When the news was brought to Joshua that they had been found, 18 he issued a command that a great stone be rolled against the mouth of the cave and that guards be placed there to keep the kings inside.
19 Then Joshua commanded the rest of the army, “Go on chasing the enemy and cut them down from the rear. Don’t let them get back to their cities, for the Lord will help you to completely destroy them.”
20 So Joshua and the Israeli army continued the slaughter and wiped out the five armies except for a tiny remnant that managed to reach their fortified cities. 21 Then the Israelis returned to their camp at Makkedah without having lost a single man! And after that no one dared to attack Israel.
22-23 Joshua now instructed his men to remove the stone from the mouth of the cave and to bring out the five kings—of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon. 24 Joshua told the captains of his army to put their feet on the kings’ necks.
25 “Don’t ever be afraid or discouraged,” Joshua said to his men. “Be strong and courageous, for the Lord is going to do this to all of your enemies.”
26 With that, Joshua plunged his sword into each of the five kings, killing them. He then hanged them on five trees until evening.
27 As the sun was going down, Joshua instructed that their bodies be taken down and thrown into the cave where they had been hiding; and a great pile of stones was placed at the mouth of the cave. (The pile is still there today.)
28 On that same day Joshua destroyed the city of Makkedah and killed its king and everyone in it. Not one person in the entire city was left alive. 29 Then the Israelis went to Libnah. 30 There, too, the Lord gave them the city and its king. Every last person was slaughtered, just as at Jericho.
31 From Libnah they went to Lachish and attacked it. 32 And the Lord gave it to them on the second day; here, too, the entire population was slaughtered, just as at Libnah.
33 During the attack on Lachish, King Horam of Gezer arrived with his army to try to help defend the city, but Joshua’s men killed him and destroyed his entire army.
34-35 The Israeli army then captured Eglon on the first day and, as at Lachish, they killed everyone in the city. 36 After leaving Eglon they went to Hebron 37 and captured it and all of its surrounding villages, slaughtering the entire population. Not one person was left alive. 38 Then they turned back to Debir, 39 which they quickly captured with all of its outlying villages. And they killed everyone just as they had at Libnah.
40 So Joshua and his army conquered the whole country—the nations and kings of the hill country, the Negeb, the lowlands, and the mountain slopes. They destroyed everyone in the land, just as the Lord God of Israel had commanded, 41 slaughtering them from Kadesh-barnea to Gaza, and from Goshen to Gibeon. 42 This was all accomplished in one campaign, for the Lord God of Israel was fighting for his people. 43 Then Joshua and his army returned to their camp at Gilgal.