Finally, all enemies have been eliminated. Now all attention can be turned to Zion, Jerusalem. The "city of God", (V. 3) is now the civil and religious capital of the world. This Psalm describes the relationship between Zion and the nations, and is the further elaboration of what we have read in Psalm 86:9. It is now about the time of the regeneration of the earth (Matthew 19:28).
“The LORD "loveth the gates of Zion" because they allow access to the city to also partake of His blessing. The gates characterize the city as one that is accessible. People enter the city in crowds through the gates to worship the LORD. Gates are also the place where justice is spoken. They speak of the authority of God in the city. It is also the place of government of the city (Ruth 4:1-10) from which law and power are exercised.