1 Now Adoni-zedek king of Jerusalem heard that Joshua had captured Ai and completely destroyed it, treating Ai and its king as he had Jericho and its king, and that the inhabitants of Gibeon had made peace with Israel and were living among them.
2 So Adoni-zedek and his people were greatly alarmed because Gibeon was a large city like one of the royal cities; it was larger than Ai, and all its men were warriors.
3 Therefore 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, saying,
4 “Come up and help me. We will attack Gibeon, because they have made peace with Joshua and the Israelites.”
5 So the five Amorite kings — the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon — joined forces, advanced with all their armies, besieged Gibeon, and fought against it.
6 Then the men of Gibeon sent word to Joshua in the camp at Gilgal: “Don’t abandon your servants. Come quickly and save us! Help us, for all the Amorite kings living in the hill country have joined forces against us.”
7 So Joshua and his whole military force, including all the fighting men, came from Gilgal.
8 The Lord said to Joshua, “Do not be afraid of them, for I have handed them over to you. Not one of them will be able to stand against you.”
9 So Joshua caught them by surprise, after marching all night from Gilgal.
10 The Lord threw them into confusion before Israel. He defeated them in a great slaughter at Gibeon, chased them through the ascent of Beth-horon, and struck them down as far as Azekah and Makkedah.
11 As they fled before Israel, the Lord threw large hailstones on them from the sky along the descent of Beth-horon all the way to Azekah, and they died. More of them died from the hail than the Israelites killed with the sword.
12 On the day the Lord gave the Amorites over to the Israelites, Joshua spoke to the Lord in the presence of Israel:“Sun, stand still over Gibeon,and moon, over the Valley of Aijalon.”
13 And the sun stood stilland the moon stoppeduntil the nation took vengeance on its enemies.Isn’t this written in the Book of Jashar? So the sun stoppedin the middle of the skyand delayed its settingalmost a full day.
14 There has been no day like it before or since, when the Lord listened to the voice of a man, because the Lord fought for Israel.
15 Then Joshua and all Israel with him returned to the camp at Gilgal.
16 Now the five defeated kings had fled and hidden themselves in the cave at Makkedah.
17 It was reported to Joshua: “The five kings have been found; they are hiding in the cave at Makkedah.”
18 Joshua said, “Roll large stones against the mouth of the cave, and station men by it to guard the kings.
19 But as for the rest of you, don’t stay there. Pursue your enemies and attack them from behind. Don’t let them enter their cities, for the Lord your God has handed them over to you.”
20 So Joshua and the Israelites finished inflicting a terrible slaughter on them until they were destroyed, although a few survivors ran away to the fortified cities.
21 The people returned safely to Joshua in the camp at Makkedah. And no one dared to threaten the Israelites.
22 Then Joshua said, “Open the mouth of the cave, and bring those five kings to me out of there.”
23 That is what they did. They brought the five kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon to Joshua out of the cave.
24 When they had brought the kings to him, Joshua summoned all the men of Israel and said to the military commanders who had accompanied him, “Come here and put your feet on the necks of these kings.” So the commanders came forward and put their feet on their necks.
25 Joshua said to them, “Do not be afraid or discouraged. Be strong and courageous, for the Lord will do this to all the enemies you fight.”
26 After this, Joshua struck them down and executed them. He hung their bodies on five trees and they were there until evening.
27 At sunset Joshua commanded that they be taken down from the trees and thrown into the cave where they had hidden. Then large stones were placed against the mouth of the cave, and the stones are there to this day.
28 On that day Joshua captured Makkedah and struck it down with the sword, including its king. He completely destroyed it and everyone in it, leaving no survivors. So he treated the king of Makkedah as he had the king of Jericho.
29 Joshua and all Israel with him crossed from Makkedah to Libnah and fought against Libnah.
30 The Lord also handed it and its king over to Israel. He struck it down, putting everyone in it to the sword, and left no survivors in it. He treated Libnah’s king as he had the king of Jericho.
31 From Libnah, Joshua and all Israel with him crossed to Lachish. They laid siege to it and attacked it.
32 The Lord handed Lachish over to Israel, and Joshua captured it on the second day. He struck it down, putting everyone in it to the sword, just as he had done to Libnah.
33 At that time Horam king of Gezer went to help Lachish, but Joshua struck him down along with his people, leaving no survivors in it.
34 Then Joshua crossed from Lachish to Eglon and all Israel with him. They laid siege to it and attacked it.
35 On that day they captured it and struck it down, putting everyone in it to the sword. He completely destroyed it that day, just as he had done to Lachish.
36 Next, Joshua and all Israel with him went up from Eglon to Hebron and attacked it.
37 They captured it and struck down its king, all its villages, and everyone in it with the sword. He left no survivors, just as he had done at Eglon. He completely destroyed Hebron and everyone in it.
38 Finally, Joshua turned toward Debir and attacked it. And all Israel was with him.
39 He captured it — its king and all its villages. They struck them down with the sword and completely destroyed everyone in it, leaving no survivors. He treated Debir and its king as he had treated Hebron and as he had treated Libnah and its king.
40 So Joshua conquered the whole region — the hill country, the Negev, the Judean foothills, and the slopes — with all their kings, leaving no survivors. He completely destroyed every living being, as the Lord, the God of Israel, had commanded.
41 Joshua conquered everyone from Kadesh-barnea to Gaza, and all the land of Goshen as far as Gibeon.
42 Joshua captured all these kings and their land in one campaign, because the Lord, the God of Israel, fought for Israel.
43 Then Joshua returned with all Israel to the camp at Gilgal.