“On that day,
Yahweh will punish
The host of heaven
In heaven.
Yahweh will punish
The kings of the earth
On earth.
They will be gathered together
As prisoners
In a pit.
They will be shut up
In a prison.
After many days,
They will be punished.
Then the moon will be abashed.
The sun will be ashamed.
Yahweh of hosts
Will reign on Mount Zion
In Jerusalem.
Before his elders,
He will manifest his glory.”
The “host of heaven in heaven” seems to be a reference to a bunch of rebellious false idol gods. Obviously Yahweh will also punish the earthly kings, since they will be imprisoned together in a pit. They will stay there many days before they receive any punishment, but this text does not indicate that they will die or how they would be punished. Then the moon and the sun will also be embarrassed and ashamed. Yahweh will then finally rule in Mount Zion in Jerusalem before the elders there. Thus he can manifest his glory.