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.