The psalmist began his poem with a call to worship the God of Jacob. That call was followed by a narrative from God relating His care for Israel when they had called in trouble and their later rejection of that care. God allowed them to make their own decisions and they chose to ignore His voice. He ended with a lament from God for the blessings that His people had missed because of their unfaithfulness.
Earthly judges are human with human weaknesses. Many times in the case of those judges, they were unjust; taking bribes and abusing the poor and helpless. The psalmist pointed those injustices out and called for God to judge the earth, for His judgment is righteous.
Many times, Israel’s enemies had called for their destruction as a nation and God had protected them. The psalmist again called for God’s justice and protection from those who were also His enemies. He listed several nations who had previously fought against them and included Assyria who had joined with them. The prayer to God was for Him to deal with them as He had done before and perhaps they would seek His name.