#What happened to the five kings who had hidden in the cave of Makkedah?

The five kings who had hidden in the cave were brought to Joshua, attacked and killed, hung on five trees until sunset, and then thrown into the cave. [10:26-27]