16 The five Amorite kings, however, had escaped and were hiding in the cave at Makkedah.
17 Someone found them, and Joshua was told where they were hiding.
18 He said, "Roll some big stones in front of the entrance to the cave. Place some guards there,
19 but don't stay there yourselves. Keep on after the enemy and attack them from the rear; don't let them get to their cities! The Lord your God has given you victory over them."
20 Joshua and the men of Israel slaughtered them, although some managed to find safety inside their city walls and were not killed.
21 Then all of Joshua's men came back safe to him at the camp at Makkedah. No one in the land dared even to speak against the Israelites.
22 Then Joshua said, "Open the entrance to the cave and bring those five kings out to me."
23 So the cave was opened, and the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon were brought out
24 and taken to Joshua. Joshua then called all the men of Israel to him and ordered the officers who had gone with him to come and put their feet on the necks of the kings. They did so.
25 Then Joshua said to his officers, "Don't be afraid or discouraged. Be determined and confident because this is what the Lord is going to do to all your enemies."
26 Then Joshua killed the kings and hanged them on five trees, where their bodies stayed until evening.
27 At sundown Joshua gave orders, and their bodies were taken down and thrown into the same cave where they had hidden earlier. Large stones were placed at the entrance to the cave, and they are still there.
28 Joshua attacked and captured Makkedah and its king that day. He put everyone in the city to death; no one was left alive. He did to the king of Makkedah what he had done to the king of Jericho.
29 After this, Joshua and his army went on from Makkedah to Libnah and attacked it.
30 The Lord also gave the Israelites victory over this city and its king. They spared no one, but killed every person in it. They did to the king what they had done to the king of Jericho.
31 After this, Joshua and his army went on from Libnah to Lachish, surrounded it and attacked it.
32 The Lord gave the Israelites victory over Lachish on the second day of the battle. Just as they had done at Libnah, they spared no one, but killed every person in the city.
33 King Horam of Gezer came to the aid of Lachish, but Joshua defeated him and his army and left none of them alive.
34 Next, Joshua and his army went on from Lachish to Eglon, surrounded it and attacked it.
35 They captured it the same day and put everyone there to death, just as they had done at Lachish.
36 After this, Joshua and his army went from Eglon up into the hills to Hebron, attacked it
37 and captured it. They killed the king and everyone else in the city as well as in the nearby towns. Joshua condemned the city to total destruction, just as he had done to Eglon. No one in it was left alive.
38 Then Joshua and his army turned back to Debir and attacked it.
39 He captured it, with its king and all the nearby towns. They put everyone there to death. Joshua did to Debir and its king what he had done to Hebron and to Libnah and its king.
40 Joshua conquered the whole land. He defeated the kings of the hill country, the eastern slopes, and the western foothills, as well as those of the dry country in the south. He spared no one; everyone was put to death. This was what the Lord God of Israel had commanded.
41 Joshua's campaign took him from Kadesh Barnea in the south to Gaza near the coast, including all the area of Goshen, and as far north as Gibeon.
42 Joshua conquered all these kings and their territory in one campaign because the Lord, Israel's God, was fighting for Israel.
43 After this, Joshua and his army went back to the camp at Gilgal.