16 Meanwhile the five kings had hidden in the cave at Makkedah. Joshua was told, "The five kings have been found, hidden in the cave at Makkedah." 18 Joshua said, "Roll big stones against the mouth of the cave and post guards to keep watch. But don't you hang around - go after your enemies. Cut off their retreat. Don't let them back into their cities. God has given them to you." 20 Joshua and the People of Israel then finished them off, total devastation. Only a few got away to the fortified towns. The whole army then returned intact to the camp and to Joshua at Makkedah. There was no criticism that day from the People of Israel!
22 Then Joshua said, "Open the mouth of the cave and bring me those five kings." 23 They did it. They brought him the five kings from the cave: the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon. 24 When they had them all there in front of Joshua, he called up the army and told the field commanders who had been with him, "Come here. Put your feet on the necks of these kings." They stepped up and put their feet on their necks. 25 Joshua told them, "Don't hold back. Don't be timid. Be strong! Be confident! This is what God will do to all your enemies when you fight them." 26 Then Joshua struck and killed the kings. He hung them on five trees where they remained until evening. At sunset Joshua gave the command. They took them down from the trees and threw them into the cave where they had hidden. They put large stones at the mouth of the cave. The kings are still in there.
28 That same day Joshua captured Makkedah, a massacre that included the king. He carried out the holy curse. No survivors. Makkedah's king got the same treatment as Jericho's king.