The Amorites are Defeated
1Adonizedek, the king of Jerusalem, heard that Joshua had captured and totally destroyed Ai and had killed its king, just as he had done to Jericho and its king. He also heard that the people of Gibeon had made peace with the Israelites and were living among them. 2The people of Jerusalem were greatly alarmed at this because Gibeon was as large as any of the cities that had a king; it was larger than Ai, and its men were good fighters. 3So Adonizedek sent the following message to King Hoham of Hebron, King Piram of Jarmuth, King Japhia of Lachish, and to King Debir of Eglon: 4“Come and help me attack Gibeon, because its people have made peace with Joshua and the Israelites.” 5These five Amorite kings, the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon, joined forces, surrounded Gibeon, and attacked it.
6The men of Gibeon sent word to Joshua at the camp in Gilgal: “Do not abandon us, sir! Come at once and help us! Save us! All the Amorite kings in the hill country have joined forces and have attacked us!”
7So Joshua and his whole army, including the best troops, started out from Gilgal. 8The LORD said to Joshua, “Do not be afraid of them. I have already given you the victory. Not one of them will be able to stand against you.” 9All night Joshua and his army marched from Gilgal to Gibeon, and they made a surprise attack on the Amorites. 10The LORD made the Amorites panic at the sight of Israel's army. The Israelites slaughtered them at Gibeon and pursued them down the mountain pass at Beth Horon, keeping up the attack as far south as Azekah and Makkedah. 11While the Amorites were running down the pass from the Israelite army, the LORD made large hailstones fall down on them all the way to Azekah. More were killed by the hailstones than by the Israelites.
12On the day that the LORD gave the men of Israel victory over the Amorites, Joshua spoke to the LORD. In the presence of the Israelites he said,
“Sun, stand still over Gibeon;
Moon, stop over Aijalon Valley.”
13The sun stood still and the moon did not move until the nation had conquered its enemies. This is written in The Book of Jashar. The sun stood still in the middle of the sky and did not go down for a whole day. 14Never before, and never since, has there been a day like it, when the LORD obeyed a human being. The LORD fought on Israel's side!
15After this, Joshua and his army went back to the camp at Gilgal.
Joshua Captures the Five Amorite Kings
16The five Amorite kings, however, had escaped and were hiding in the cave at Makkedah. 17Someone found them, and Joshua was told where they were hiding. 18He said, “Roll some big stones in front of the entrance to the cave. Place some guards there, 19but 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.” 20Joshua and the men of Israel slaughtered them, although some managed to find safety inside their city walls and were not killed. 21Then 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.
22Then Joshua said, “Open the entrance to the cave and bring those five kings out to me.” 23So the cave was opened, and the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon were brought out 24and 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. 25Then 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.” 26Then Joshua killed the kings and hanged them on five trees, where their bodies stayed until evening. 27At sunset 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.