23 They did so. They brought the five kings out of the cave to him: the kings of Jerusalem, Hebron, Jarmuth, Lachish, and Eglon.
24 When they brought these kings out to Joshua, Joshua called for every Israelite. He said to the military commanders who had gone out with him, "Come forward. Put your feet on the necks of these kings." So they went forward and put their feet on their necks.
25 Then Joshua said to them, "Don’t be afraid or terrified. Be brave and strong, because this is how the Lord will deal with all the enemies you fight."
26 Next, Joshua struck them down. He put them to death and then hanged them on five trees. They were hanging on the trees until evening.
27 At sundown, Joshua gave an order, and they took them down from the trees. They threw them into the cave where they had hidden themselves, and they set large stones over the mouth of the cave. The stones are still there to this very day.
28 On that day, Joshua captured Makkedah. With a sword, he struck it and its king without mercy. He wiped them out, treating everyone in the city as something reserved for God. He left no survivors. He did to the king of Makkedah exactly as he had done to the king of Jericho.
29 Then Joshua along with all Israel moved on from Makkedah to Libnah. They attacked Libnah.