(1) When King Adoni-zedek of Jerusalem learned that Joshua had captured Ai and proscribed it, treating Ai and its king as he had treated Jericho and its king, and that, moreover, the people of Gibeon had come to terms with Israel and remained among them, (2) he was very frightened. For Gibeon was a large city, like one of the royal cities—in fact, 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 up and help me defeat Gibeon; for it has come to terms with Joshua and the Israelites.” (5) The five Amorite kings—the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon, with all their armies—joined forces and marched on Gibeon, and encamped against it and attacked it. (6) The people of Gibeon thereupon sent this message to Joshua in the camp at Gilgal: “Do not fail your servants; come up quickly and aid us and deliver us, for all the Amorite kings of the hill country have gathered against us.” (7) So Joshua marched up from Gilgal with his whole fighting force, all the trained warriors. (8) The LORD said to Joshua, “Do not be afraid of them, for I will deliver them into your hands; not one of them shall withstand you.” (9) Joshua took them by surprise, marching all night from Gilgal. (10) The LORD threw them into a panic before Israel: [Joshua] inflicted a crushing defeat on them at Gibeon, pursued them in the direction of the Beth-horon ascent, and harried them all the way to Azekah and Makkedah. (11) While they were fleeing before Israel down the descent from Beth-horon, the LORD hurled huge stones on them from the sky, all the way to Azekah, and they perished; more perished from the hailstones than were killed by the Israelite weapons. (12) On that occasion, when the LORD routed the Amorites before the Israelites, Joshua addressed the LORD; he said in the presence of the Israelites: “Stand still, O sun, at Gibeon, O moon, in the Valley of Aijalon!” (13) And the sun stood still And the moon halted, While a nation wreaked judgment on its foes —as is written in the Book of Jashar. Thus the sun halted in midheaven, and did not press on to set, for a whole day; (14) for the LORD fought for Israel. Neither before nor since has there ever been such a day, when the LORD acted on words spoken by a man. (15) Then Joshua together with all Israel returned to the camp at Gilgal. (16) Meanwhile, those five kings fled and hid in a cave at Makkedah. (17) When it was reported to Joshua that the five kings had been found hiding in a cave at Makkedah, (18) Joshua ordered, “Roll large stones up against the mouth of the cave, and post men over it to keep guard over them. (19) But as for the rest of you, don’t stop, but press on the heels of your enemies and harass them from the rear. Don’t let them reach their towns, for the LORD your God has delivered them into your hands.” (20) When Joshua and the Israelites had finished dealing them a deadly blow, they were wiped out, except for some fugitives who escaped into the fortified towns. (21) The whole army returned in safety to Joshua in the camp at Makkedah; no one so much as snarled at the Israelites. (22) And now Joshua ordered, “Open the mouth of the cave, and bring those five kings out of the cave to me.” (23) This was done. Those five kings—the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon—were brought out to him from the cave. (24) And when the kings were brought out to Joshua, Joshua summoned all the men of Israel and ordered the army officers who had accompanied him, “Come forward and place your feet on the necks of these kings.” They came forward and placed their feet on their necks. (25) Joshua said to them, “Do not be frightened or dismayed; be firm and resolute. For this is what the LORD is going to do to all the enemies with whom you are at war.” (26) After that, Joshua had them put to death and impaled on five stakes, and they remained impaled on the stakes until evening. (27) At sunset Joshua ordered them taken down from the poles and thrown into the cave in which they had hidden. Large stones were placed over the mouth of the cave, [and there they are] to this very day. (28) At that time Joshua captured Makkedah and put it and its king to the sword, proscribing it and every person in it and leaving none that escaped. And he treated the king of Makkedah as he had treated the king of Jericho. (29) From Makkedah, Joshua proceeded with all Israel to Libnah, and he attacked it. (30) The LORD delivered it and its king into the hands of Israel; they put it and all the people in it to the sword, letting none escape. And he treated its king as he had treated the king of Jericho. (31) From Libnah, Joshua proceeded with all Israel to Lachish; he encamped against it and attacked it. (32) The LORD delivered Lachish into the hands of Israel. They captured it on the second day and put it and all the people in it to the sword, just as they had done to Libnah. (33) At that time King Horam of Gezer marched to the help of Lachish; but Joshua defeated him and his army, letting none of them escape. (34) From Lachish, Joshua proceeded with all Israel to Eglon; they encamped against it and attacked it. (35) They captured it on the same day and put it to the sword, proscribing all the people that were in it, as they had done to Lachish. (36) From Eglon, Joshua marched with all Israel to Hebron and attacked it. (37) They captured it and put it, its king, and all its towns, and all the people that were in it, to the sword. He let none escape, proscribing it and all the people in it, just as he had done in the case of Eglon. (38) Joshua and all Israel with him then turned back to Debir and attacked it. (39) He captured it and its king and all its towns. They put them to the sword and proscribed all the people in it. They let none escape; just as they had done to Hebron, and as they had done to Libnah and its king, so they did to Debir and its king. (40) Thus Joshua conquered the whole country: the hill country, the Negeb, the Shephelah, and the slopes, with all their kings; he let none escape, but proscribed everything that breathed—as the LORD, the God of Israel, had commanded. (41) Joshua conquered them from Kadesh-barnea to Gaza, all the land of Goshen, and up to Gibeon. (42) All those kings and their lands were conquered by Joshua at a single stroke, for the LORD, the God of Israel, fought for Israel. (43) Then Joshua, with all Israel, returned to the camp at Gilgal.