After this, Joshua struck the kings down and put them to death, and hanged them on five trees. They hung on the trees until evening.
In context
24When they had brought the kings out to Joshua, Joshua summoned all the men of Israel and said to the commanders of the fighting men who had gone with him, “Come here and put your feet on the necks of these kings.” So they came and put their feet on their necks. 25Joshua said to them, “Do not be afraid or discouraged. Be strong and courageous, for this is what Yahweh will do to all the enemies you fight against.” 26After this, Joshua struck the kings down and put them to death, and hanged them on five trees. They hung on the trees until evening. 27At sunset Joshua gave the order, and they took them down from the trees and threw them into the cave where they had hidden. They put large stones over the mouth of the cave, which remain there to this very day. 28That same day Joshua captured Makkedah and struck it down with the sword. He devoted its king and everyone in it to destruction, leaving no survivor. He did to the king of Makkedah as he had done to the king of Jericho.