Shared ground
These verses picture a worshiper arriving at a sacred space and asking to be admitted so he can thank God. The “gates” are presented as belonging to Yahweh, not as the worshiper’s personal possession or achievement. Entry is connected to “the righteous,” and the speaker’s thanksgiving is tied to a specific reason: God answered him and became his deliverance.
The text’s core movement is relational and public: access → entry → thanksgiving. The reason for praise is not vague gratitude but a response received from God (v. 21). The language also assumes an ordered worship setting with real boundaries (“gates”), fitting the broader psalm’s shift from danger to safety and from testimony to gathered praise.
Where interpretation differs (only where needed)
What “gates of righteousness” means. Some read this mainly as the temple gates being the proper place for right worship, so “righteousness” describes the worship-setting and the kind of approach that fits it. Others hear a stronger moral note: the gates symbolize access that matches a right standing or right living.
How literal the “gate” language is. Many take it as straightforward temple imagery (a worshiper coming to the sanctuary). Others allow that, even if temple language is in view, the lines also work as a metaphor for God granting access after distress.
Who “the righteous” are. Some think it points to the speaker as a member of the righteous (or newly vindicated as such). Others take it as a general category that states the rule for entry, whether or not it comments directly on the speaker.
Why the disagreement exists
The phrasing can do more than one job at once: “righteousness” can describe worship that fits God, people who fit God’s standards, or both. Also, the psalm uses a concrete worship setting while speaking about deliverance in broad terms, so readers differ on how much symbolism to press beyond the sanctuary scene.
What this passage clearly contributes
- It links thanksgiving to God’s concrete action: God “answered” and “became” the speaker’s deliverance (v. 21), grounding praise in experienced rescue.
- It portrays access to God’s worship space as something granted (“open to me”) and as belonging to Yahweh (vv. 19–20).
- It connects entry with “the righteous,” presenting worship as morally and covenantally fitting, not casual or detached from the kind of life God approves (v. 20).
- It supplies a small “arrival scene” inside Psalm 118’s larger story of trouble → help → public thanks (see Psalm 118:22–24).