16 During the battle the five kings escaped and hid in a cave at Makkedah. 17 When Joshua heard that they had been found, 18 he issued this command: “Cover the opening of the cave with large rocks, and place guards at the entrance to keep the kings inside. 19 The rest of you continue chasing the enemy and cut them down from the rear. Don’t give them a chance to get back to their towns, for the Lord your God has given you victory over them.” 20 So Joshua and the Israelite army continued the slaughter and completely crushed the enemy. They totally wiped out the five armies except for a tiny remnant that managed to reach their fortified towns. 21 Then the Israelites returned safely to Joshua in the camp at Makkedah. After that, no one dared to speak even a word against Israel.
22
Then Joshua said, “Remove the rocks covering the opening of the cave, and bring the five kings to me.”
23
So they brought the five kings out of the cave - the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
24
When they brought them out, Joshua told the commanders of his army, “Come and put your feet on the kings’ necks.” And they did as they were told.
25
“Don’t ever be afraid or discouraged,” Joshua told his men. “Be strong and courageous, for the Lord is going to do this to all of your enemies.”
26
Then Joshua killed each of the five kings and impaled them on five sharpened poles, where they hung until evening.
27
As the sun was going down, Joshua gave instructions for the bodies of the kings to be taken down from the poles and thrown into the cave where they had been hiding. Then they covered the opening of the cave with a pile of large rocks, which remains to this very day.
28 That same day Joshua captured and destroyed the town of Makkedah. He killed everyone in it, including the king, leaving no survivors. He destroyed them all, and he killed the king of Makkedah as he had killed the king of Jericho.