Here’s the text of the Psalm:
מִזְמֹ֗ור לְאָ֫סָ֥ף אֱֽלֹהִ֗ים נִצָּ֥ב בַּעֲדַת־אֵ֑ל בְּקֶ֖רֶב אֱלֹהִ֣ים יִשְׁפֹּֽט׃
עַד־מָתַ֥י תִּשְׁפְּטוּ־עָ֑וֶל וּפְנֵ֥י רְ֝שָׁעִ֗ים תִּשְׂאוּ־סֶֽלָה׃
שִׁפְטוּ־דַ֥ל וְיָתֹ֑ום עָנִ֖י וָרָ֣שׁ הַצְדִּֽיקוּ׃
פַּלְּטוּ־דַ֥ל וְאֶבְיֹ֑ון מִיַּ֖ד רְשָׁעִ֣ים הַצִּֽילוּ׃
לֹ֤א יָֽדְע֨וּ ׀ וְלֹ֥א יָבִ֗ינוּ בַּחֲשֵׁכָ֥ה יִתְהַלָּ֑כוּ יִ֝מֹּ֗וטוּ כָּל־מֹ֥וסְדֵי אָֽרֶץ׃
אֲֽנִי־אָ֭מַרְתִּי אֱלֹהִ֣ים אַתֶּ֑ם וּבְנֵ֖י עֶלְיֹ֣ון כֻּלְּכֶֽם׃
אָ֭כֵן כְּאָדָ֣ם תְּמוּת֑וּן וּכְאַחַ֖ד הַשָּׂרִ֣ים תִּפֹּֽלוּ׃
קוּמָ֣ה אֱ֭לֹהִים שָׁפְטָ֣ה הָאָ֑רֶץ כִּֽי־אַתָּ֥ה תִ֝נְחַ֗ל בְּכָל־הַגֹּויִֽם
1- A Psalm of Asaph: God stands in the Council of El. In the midst of gods he judges
2 – “How long will you administer iniquity, and show favor to the wicked? Selah.
3 – “Administer to the poor and the orphan. Bring justice to the afflicted and the needy.
4 – “Deliver the poor and the oppressed. Save them from the power of the wicked.”
5 – They do not know, and they have no understanding. In darkness they walk about, and all the foundations of the earth stagger.
6 – I have said, “You are gods, and sons of Elyon, all of you;
7 – “But as humanity you will die, and as one of the princes you will fall.”
8 – Rise up, O God. Judge the earth, for you have taken possession of all the nations.
The first clue to interpretation here is the identification of its genre. It is a hymn of praise that appeals to the Divine Council type-scene. While there is mythic imagery in the psalm, it is most likely not alluding to any actual mythological narrative. It simply draws upon stock literary conventions to produce a short scene that communicates a specific message. While the general message is praise, there is obviously a more specific one as well. In the past, owing to an understanding of word אלהים as referring to human judges, some posited that this psalm condemns the leaders of Israel for negligence. The rhetorical value of such a reading is weak, however, and contributes little to the praise of YHWH. The “judges” reading of אלהים has also been roundly rejected by scholarship, beginning in 1935 with Cyrus Gordon, which has led to the acceptance of a less tendentious reading of the chapter. It is universally recognized as referring to ontological deities. In the text they are arraigned for negligence vis-à-vis the poor and afflicted and are condemned to die. As a result of their sentence, YHWH is said to have inherited all the nations and is called upon by the psalmist to rise up and judge the whole earth. The chapter is thus concerned with the condemnation of the deities mentioned and YHWH’s appropriation of their stewardships. Praise is directed at YHWH for his acquisition of rule over the entire earth and the expected administration of justice.
The next question that arises in understanding the psalm concerns the station of YHWH in the psalm. Is he presiding over the council or is he simply a member? Again, genre helps to illuminate the proper understanding. While a simple judicial context is clear, it is not the primary motif to which the vernacular appeals. That divine council imagery takes priority over a straight juridical type-scene is evident in the psalm’s departure from normal judicial convention. YHWH stands to judge, for instance, which conflicts with biblical representations of court scenes. In the divine council, however, the members of the council stand. They may pass judgment as plaintiffs, but they stand, collectively, before the highest authority, who sits. This is YHWH’s position in the chapter: standing among the other members of the council. Simon B. Parker has suggested two texts that may parallel Psalm 82 literarily. 2 Samuel 15 and KTU 188.8.131.52–54 describe indictments brought by subordinates (David’s son Absalom and Kirta’s son Yassub) against a superior (who is also the father) for neglecting justice. The indictments take the form of speeches and the subordinate demands the ruler turn over authority. While YHWH is not a subordinate of the other gods of the council in Psalm 82, he is a subordinate of Elyon, his father. His indictments also address the gods’s negligence vis-à-vis justice, and the outcome is the relinquishment of rule to YHWH. The psalm thus gives YHWH success where Absalom and Yassub fail.
Another biblical text that supports YHWH’s subordinate status is Deut 32:8–9, which describes the separation of the nations according to the number of the “sons of Elohim.” The text puts YHWH in a position subordinate to that of the head deity, El Elyon. The nations are portioned out to the individual sons of El. YHWH is among them and he receives Israel. Psalm 82 follows Deut 32:8–9, chronologically. While YHWH is a recipient only of the nation of Israel in Deuteronomy, he is called upon to rise and judge the earth after inheriting all the nations in Psalm 82. The other players in the drama, Elyon with his children, are unique to the two texts. These are also the only two texts in the Hebrew Bible that explicitly present Elyon as YHWH’s superior. Some manner of linear literary relationship is beyond doubt.
Elsewhere in the biblical corpus the member of the divine council are referred to variously as the בני אלים (“Sons of God,” but see here), בני אלהים (“Sons of God”), קדשים (“The Holy Ones”), צבא השמים (“The Host of Heaven”), and כוכבי בקר (“The Stars of the Morning”). During periods of increasing contact with Assyro-Babylonian ideology and literature the divine council moved toward a more astral composition, accounting for the use of “Host of Heaven” and “Stars of the Morning” in texts from the late pre-exilic and later. Deut 4:19 manifests one of these late reinterpretations of Deut 32:8–9 and Psalm 82. The author could not extend the literary outcome of Psalm 82 since the deities of the nations continued to exist, and so in Deuteronomy 4 the gods of the nations have been recast as astral bodies. While YHWH is the recipient of a nation portioned out by Elyon in Deuteronomy 32, he is doing the portioning in chapter 4. This puts the composition of chapter 4 chronologically after that of 32 and Psalm 82.
All three texts show a movement toward a consolidated and universalized Israelite deity. This kind of theological innovation has long been understood to be a response to socio-political crises, and the history of Israel’s interactions with foreign powers corresponds to its trajectory. The sins of Israel have caused God to incite another nation under his power to punish them. The same ideology is present in the 9th century Mesha Inscription, which attributes Israel’s oppression of Moab to Chemosh’s anger with “his land,” and the 8th century Sefire Inscription, which attributes the loss of Tal’ayim to the punishment of the gods. Psalm 82 stands at a threshold between a national view of YHWH and a universal one. If the God of Israel was to survive the destruction of the Northern Kingdom and the Babylonian exile a paradigm shift would need to take place that would expand his hegemony beyond Israel to include the Assyro-Babylonian nations to the east, which would be viewed as instruments of punishment in YHWH’s hands.
Some points of summary. The “Sons of Elyon” are considered ontological deities by the author, even if they are nameless and faceless. The foundations of the earth are shaken as a result of their neglecting justice in their several stewardships. Assyria and Babylon’s violent and unjust subjugation of the nations of the Near East are the manifestation of this upheaval. The gods are condemned to die as a result and YHWH is exalted to a position of rule over the whole earth, rationalizing the loss of Israelite autonomy without undermining the authority or power of her deity. The hymn thus updates YHWH’s position and glorifies him as god of all of humanity.
 See Min Suc Kee, “The Heavenly Council and its Type-scene,” Journal for the Study of the Old Testament 31 (2007): 259–73.
 See my post Elohim Does Not Mean “Judges.” Advocates of this reading cite either BDB or the dictionary from Strong’s concordance, which were both published over 100 years ago. No modern lexicon agrees with that reading. As Morgenstern pointed out in 1939, the only modern scholar who has approved of the “judges” reading is Kittel, who later abandoned it. See Morgenstern, “The Mythological Background of Psalm 82,” Hebrew Union College Annual 14 (1939): 30 (n. 3). On the contemporary understanding of אלהים in Psalm 82, see Robinson, “The Council of Yahweh,” Journal of Theological Studies 45 (1944): 155; Cooke, “The Sons of (the) God(s),” Zeitschrift für die alttestamentliche Wissenschaft 35.1 (1964): 25; Rosenberg, “Yahweh Becomes King,” Journal of Biblical Literature 85. 3 (September 1966): 306; Tsevat, “God and the Gods in Assembly: An Interpretation of Psalm 82,” Hebrew Union College Annual 40/41 (1969–1970): 126; Simon B. Parker, “The Beginning of the Reign of God – Psalm 82 as Myth and Liturgy,” Revue Biblique 102.4 (1995): 532–59; Heiser, “Deuteronomy 32:8 and the Sons of God,” Bibliotheca Sacra 158 (2001): 10–13; Kee, “The Heavenly Council and its Type-scene,” 262.
 It is primarily fundamental Christian apologists who continue to advocate this reading (see, for instance, here and here). The notion that the human-like deaths of the “Sons of Elyon” in v. 6 precludes their divinity is also rejected. See Morgenstern, “The Mythological Background of Psalm 82,” 34: “The oft-repeated argument against this conclusion, that it is impossible to conceive of gods dying as men do, we shall see, is altogether gratuitous and mistaken and misses completely the real point of the v. Unquestionably this v. has to do just with gods or divine beings of a certain class who were actually condemned by Yawheh to die, or at least to become mortal, like human beings.”
 See Tsevat, “God and the Gods in Assembly: An Interpretation of Psalm 82,” 127–28. Tsevat includes v. 8 in his interpretation of Yahweh’s stance, which is incorrect. V. 8 is the voice of the psalmist. While God is occasionally represented as standing to pass judgment on humanity (Isa 3:13; Ps 76:10), he is acting as the plaintiff (See Parker, “The Beginning of the Reign of God – Psalm 82 as Myth and Liturgy,” 536–37), and never in a divine council context.
 See, for instance, Job 1:6 and 2:1, where the בני אלהים come to “take their stand” (להתיצב) before YHWH. See also Kee, “The Heavenly Council and its Type-scene,” 263–68. On occasion the members of the council will be represented in the action of taking their seats, but this is not found in the Hebrew Bible. Heiser has argued that the imperative to rise in v. 8 indicates Yahweh had been seated, but, again, v. 8 is not internal to the narrative.
 Parker, “The Beginning of the Reign of God – Psalm 82 as Myth and Liturgy,” 543–48.
 MT has a corruption that has long been evinced in the Septuagint translation “angels of God” (the normal translation of the Hebrew בני אלהים). The Dead Sea Scrolls also attest to the proposed Vorlage to LXX Deut 32:8, בני אלהים. For the most recent scholarship in this text, see Joosten, “A Note on the Text of Deuteronomy xxxii 8,” Vetus Testamentum 57 (2007): 548–55. “Sons of Bull El” would be the translation if Joosten’s theory is correct.
 The correct interpretation of v. 9’s כי does not bear on the discussion, as LXX Deut32:9 has και εγενηθη, derived most likely from an original ויהי.
 See Eissfeldt, “El and Yahweh,” Journal of Semitic Studies 1.1 (1956): 29–30.
 Ps 29:1; 89:7.
 Gen 6:2; Job 1:6; 2:2; 38:7.
 Deut 33:2, 3; Isa 13:3; Zech 14:5; Prov 9:10; 30:3; Ps 89:6, 8.
 Deut 4:19; 17:3; 1 Kgs 22:19; 2 Kgs 17:16; 21:5; 23:4, 5; Isa 34:4; Jer 8:2; 19:13; Jer 33:22; Zeph 1:5; Dan 8:10; Neh 9:6; 2 Chr 18:18; 33:3, 5.
 Job 38.7.
 This also presents problems for those who insist Deuteronomy rejects the existence of other deities. It explicitly accepts their existence and even states that God has placed them in their positions of authority over the other nations. It is illogical that such would be the case if the foreign gods are considered simple lifeless idols or demons. They are clearly presented as actual deities subordinate to YHWH.
 See Rosenberg, “Yahweh Becomes King,” Journal of Biblical Literature 85. 3 (September 1966): 297–307.
 Mesha Inscription 1.5. See also Routledge, Moab in the Iron Age: Hegemony, Polity, Archaeology (Philadelphia: University of Pennsylvania Press, 2004), 158.
 Sefire Inscription 3.23–25. See Fitzmyer, The Aramaic Inscriptions of Sefire, Revised Edition (Rome: Editrice Pontificio Istituto Biblico, 1995), 40–41.