Shared ground
These lines close Psalm 24 with a repeated summons: the gates and “everlasting doors” are told to open wide because “the King of glory” is arriving (explicit in the text). The repeated question—“Who is this King of glory?”—sets up the final identification: it is Yahweh, specifically “Yahweh of Hosts” (explicit in the text). The last line restates the conclusion—he is the King of glory—and “Selah” marks a deliberate pause (explicit in the text).
The portrayal is of divine kingship expressed in public, ceremonial language. The poem treats an entrance (gates/doors) as if it could respond, which works well as poetic personification within a staged call-and-response (inference from the form, consistent with the repeated dialogue).
Where interpretation differs
Some readers take the gates and doors as describing a real setting in Jerusalem—city gates, temple entrances, or both—used in worship to celebrate Yahweh’s arrival and rule (inference anchored to the gate imagery and the procession-like structure in Psalm 24:7–10). Others read the language more broadly as a symbolic picture of unlimited access and enduring rule: “everlasting doors” points beyond any single building to Yahweh’s permanent kingship and the lasting opening of his presence (inference from “everlasting” and the cosmic claims earlier in the psalm).
There is also some range in how “Hosts” is heard. It can evoke military armies, the heavenly assembly, or a general idea of vast forces under Yahweh’s command. The text itself does not specify which is in view; it supplies the title to underline authority on a grand scale (inference from the title’s function in the climax).
Why the disagreement exists
The passage uses concrete, local images (gates/doors) but also elevated, sweeping language (“everlasting,” “King of glory,” “Yahweh of Hosts”). Because poetry can do both at once, interpreters differ on whether the main emphasis is a particular liturgical moment at an entrance or a larger theological statement about Yahweh’s rule that the entrance scene represents.
What this passage clearly contributes
These verses explicitly identify the “King of glory” as Yahweh, and they do so as the final answer of the psalm’s entrance dialogue. The repetition reinforces that Yahweh’s identity and authority are the center of the scene, not the architecture. The title “Yahweh of Hosts” intensifies the claim: the King who “comes in” is presented as commanding overwhelming resources, worthy of honor in the most public way.
Psalm 24:1 frames this ending: the one welcomed at the gates is also the rightful ruler of all the earth. Psalm 24:7 shows that the closing lines are not new information but the final, sharpened identification of the arriving King.