1. Adoni-Zedek, king of Jerusalem, heard how Joshua captured Ai and annihilated it and its king as he did Jericho and its king. He also heard how the people of Gibeon made peace with Israel and lived among them.
2. All Jerusalem was terrified because Gibeon was a large city, like one of the royal cities. It was larger than Ai and all its men were warriors.
3. So King Adoni-Zedek of Jerusalem sent this message to King Hoham of Hebron, King Piram of Jarmuth, King Japhia of Lachish, and King Debir of Eglon:
4. "Come to my aid so we can attack Gibeon, for it has made peace with Joshua and the Israelites."
5. So the five Amorite kings (the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon) and all their troops gathered together and advanced. They deployed their troops and fought against Gibeon.
6. The men of Gibeon sent this message to Joshua at the camp in Gilgal, "Do not abandon your subjects! Rescue us! Help us! For all the Amorite kings living in the hill country are attacking us."
7. So Joshua and his whole army, including the bravest warriors, marched up from Gilgal.
8. The LORD told Joshua, "Don't be afraid of them, for I am handing them over to you. Not one of them can resist you."
9. Joshua attacked them by surprise after marching all night from Gilgal.
10. The LORD routed them before Israel. Israel thoroughly defeated them at Gibeon. They chased them up the road to the pass of Beth Horon and struck them down all the way to Azekah and Makkedah.
11. As they fled from Israel on the slope leading down from Beth Horon, the LORD threw down on them large hailstones from the sky, all the way to Azekah. They died� in fact, more died from the hailstones than the Israelites killed with the sword.
12. The day the LORD delivered the Amorites over to the Israelites, Joshua prayed to the LORD before Israel: "O sun, stand still over Gibeon! O moon, over the Valley of Aijalon!"
13. The sun stood still and the moon stood motionless while the nation took vengeance on its enemies. The event is recorded in the Scroll of the Upright One. The sun stood motionless in the middle of the sky and did not set for about a full day.
14. There has not been a day like it before or since. The LORD obeyed a man, for the LORD fought for Israel!
15. Then Joshua and all Israel returned to the camp at Gilgal.
16. The five Amorite kings ran away and hid in the cave at Makkedah.
17. Joshua was told, "The five kings have been found hiding in the cave at Makkedah."
18. Joshua said, "Roll large stones over the mouth of the cave and post guards in front of it.
19. But don't you delay! Chase your enemies and catch them! Don't allow them to retreat to their cities, for the LORD your God is handing them over to you."
20. Joshua and the Israelites almost totally wiped them out, but some survivors did escape to the fortified cities.
21. Then the whole army safely returned to Joshua at the camp in Makkedah. No one dared threaten the Israelites.
22. Joshua said, "Open the cave's mouth and bring the five kings out of the cave to me."
23. They did as ordered; they brought the five kings out of the cave to him� the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
24. When they brought the kings out to Joshua, he summoned all the men of Israel and said to the commanders of the troops who accompanied him, "Come here and put your feet on the necks of these kings." So they came up and put their feet on their necks.
25. Then Joshua said to them, "Don't be afraid and don't panic! Be strong and brave, for the LORD will do the same thing to all your enemies you fight.
26. Then Joshua executed them and hung them on five trees. They were left hanging on the trees until evening.
27. At sunset Joshua ordered his men to take them down from the trees. They threw them into the cave where they had hidden and piled large stones over the mouth of the cave. (They remain to this very day.)
28. That day Joshua captured Makkedah and put the sword to it and its king. He annihilated everyone who lived in it; he left no survivors. He did to its king what he had done to the king of Jericho.
29. Joshua and all Israel marched from Makkedah to Libnah and fought against it.
30. The LORD handed it and its king over to Israel, and Israel put the sword to all who lived there; they left no survivors. They did to its king what they had done to the king of Jericho.
31. Joshua and all Israel marched from Libnah to Lachish. He deployed his troops and fought against it.
32. The LORD handed Lachish over to Israel and they captured it on the second day. They put the sword to all who lived there, just as they had done to Libnah.
33. Then King Horam of Gezer came up to help Lachish, but Joshua struck down him and his army until no survivors remained.
34. Joshua and all Israel marched from Lachish to Eglon. They deployed troops and fought against it.
35. That day they captured it and put the sword to all who lived there. That day they annihilated it just as they had done to Lachish.
36. Joshua and all Israel marched up from Eglon to Hebron and fought against it.
37. They captured it and put the sword to its king, all its surrounding cities, and all who lived in it; they left no survivors. As they had done at Eglon, they annihilated it and all who lived there.
38. Joshua and all Israel turned to Debir and fought against it.
39. They captured it, its king, and all its surrounding cities and put the sword to them. They annihilated everyone who lived there; they left no survivors. They did to Debir and its king what they had done to Libnah and its king and to Hebron.
40. Joshua defeated the whole land, including the hill country, the Negev, the lowlands, the slopes, and all their kings. He left no survivors. He annihilated everything that breathed, just as the LORD God of Israel had commanded.
41. Joshua conquered the area between Kadesh Barnea and Gaza and the whole region of Goshen, all the way to Gibeon.
42. Joshua captured in one campaign all these kings and their lands, for the LORD God of Israel fought for Israel.
43. Then Joshua and all Israel returned to the camp at Gilgal.