This chapter is a whole oracle composed of three sections.
31:1 The Lord gave Ezekiel a third oracle against Egypt in 587 B.C., less than two months after the previous one (30:20-26).
31:2 The prophet was to speak this one to Pharaoh Hophra and to the Egyptians. Obviously Ezekiel was in Babylon and they were in Egypt, but he was to speak publicly as though he were addressing them in person. He asked rhetorically who the Egyptians were like in their greatness.
31:3 They were similar to the Assyrians who had towered among the nations as a beautiful cedar of Lebanon (cf. 17:1-10, 22-24; 19:10-14; 26:19-21; 28:11-19; Isa. 14:3-21). Some of the Lebanese cedars grew 80 feet high, were beautifully symmetrical, and contained thickly interwoven branches.417
Assyria had been one of the greatest nations in history before its fall in 612 B.C., perhaps the greatest nation. It was of particular interest to the Egyptians for two reasons. It had been the only Mesopotamian nation to invade Egypt successfully. The Assyrians destroyed Thebes in 633 B.C. (cf. Nah. 3:8-10) and eventually incorporated Egypt into its empire. Second, Assyria had fallen to the Babylonians, the same enemy that now threatened Egypt. The city of Nineveh fell to Nabopolassar, Nebuchadnezzar's father, in 612 B.C., and Nebuchadnezzar crushed the rest of the Assyrian army at Haran in 609 B.C.
31:4-5 Like Egypt, Assyria received much of its strength and power from the waters that surrounded it, the Nile in Egypt's case and the Tigris in Assyria's. The waters that nourished these nations enabled them to grow strong and to tower above many others. The network of supporting nations that surrounded both Assyria and Egypt contributed to their strength and growth in another way.
31:6 Many peoples and nations benefited from the mighty kingdom of Assyria symbolized by the birds and beasts that took refuge under this tree (cf. vv. 12, 13; 17:23; Dan. 4:12; Matt. 13:32).
31:7-9 Assyria was beautiful and graceful because of the waters that sustained it, waters that were solely a gift of God's grace. No tree in God's garden of nations could compare with it. The other kingdoms were jealous of Assyria, which was preeminent in God's Eden-like collection of nations.
31:10-11 However, because Assyria was a proud nation, the Lord had determined to turn it over to a strong individual who would deal with it by cutting it down, namely, Nebuchadnezzar. God had driven it out of His Eden as He had driven Adam and Eve out for their pride.
31:12-13 Alien tyrants from other nations had cut off parts of Assyria and left it lying like a tree with its limbs chopped off in a valley. Assyria had a reputation for being an extremely cruel nation, and the other nations had dealt with it ruthlessly. The people of the earth who had taken refuge in Assyria like birds and beasts under a tree had fled from under it but continued to use its remains to their own advantage.
31:14 This fate had befallen Assyria in part so other greatly blessed, proud nations would learn not to exalt themselves. All nations, like trees, eventually fall down and return to the dust like human corpses do in the grave.
31:15 On the day that God humbled Assyria, He caused many people and nations to mourn her demise. He made it impossible for that nation to revive; He did the same thing as burying it in the sea, and He kept its life-giving waters from revitalizing it. The people in the area from which Assyria had come, Mesopotamia, mourned for it, and other nations (trees) wilted because of its fall.
31:16 The fall of Assyria created the same reaction among the nations as the felling of a mighty tree does in the forest; all the other nations (trees) quaked. The other nations also were able to grow better themselves since they no longer had to live in the shadow of mighty Assyria.
31:17 Some other nations fell when Assyria did; this great tree fell on other trees and took them down with it. Some of them had even sustained Assyria and profited from Assyria's greatness, but she fell on them.
31:18 For the Lord Ezekiel asked Pharaoh and the Egyptians which of the trees (nations) in God's garden they resembled. Egypt was obviously like Assyria in its greatness and pride and may have thought of itself as Assyria's equal. Nevertheless God would cut down Egypt as He had felled Assyria. The people would die among the uncircumcised, like barbarians (cf. 28:10; 29:5; 32:19, 21; Jer. 9:25-26). This was a terrible fate for people who regarded a proper burial as preparation for life beyond the grave, as the Egyptians did. The Egyptians practiced circumcision, but the Babylonians did not. They also despised foreigners. They would die by the sword in war. This would be the fate of Pharaoh and the Egyptians that Almighty God promised. If Assyria could not escape Yahweh's judgment, how could Egypt?
"The story of the cedar revisits several familiar themes that occurred in the prophecies against foreign nations. First, God hates pride because it leads people and nations to ruin (Ezek 27:3; 28:2; Prov 16:18). Second, the mighty fall as do the weak (cf. 27:27-36). When the mighty fall, it is also a loss for the weak and dependant [sic]. Third, the fall of the tree was a reminder of the mortality of human beings and individual accountability to God (cf. 3:16-21; 18:1-21)."418
If the Jewish exiles still entertained any hope that Egypt would save them from captivity, this prophecy would have encouraged them to abandon such a dream.