"The officials of Zoan have become fools, the leaders of Memphis are deceived; the cornerstones of her peoples have led Egypt astray." NIV translation
The leaders of Egypt had led the people into their gross idolatry and so the judgment begins with them. This is true for the leaders of countries today as well.
"The Lord has poured into them a spirit of dizziness; they make Egypt stagger in all that she does, as a drunkard staggers around in his vomit. There is nothing Egypt can do - head or tail, palm branch or reed." NIV translation
The Egyptians were famous for their knowledge of science but we see that God replaces their wisdom with confusion. We also see that there is nothing they can do to stop it.
"In that day the Egyptians will become weaklings. They will shudder with fear at the uplifted hand that the Lord Almighty raises against them." NIV translation
Now, Isaiah describes a future judgment of the nation of Egypt as he describes this once mighty nation as "weaklings". We see that they learn to fear God and are reminded that fear is the beginning of knowledge (Proverbs 1:7).
"And the land of Judah will bring terror to the Egyptians; everyone to whom Judah is mentioned will be terrified, because of what the Lord Almighty is planning against them." NIV translation
We know that this describes future events as Egypt is not terrified by Israel today. What could make Egypt terrified? Today, the country is about 90% Muslim (they deny that Jesus Christ is the Son of God). They will be terrified when they learn the truth and see His power demonstrated.
"In that day five cities in Egypt will speak the language of Canaan and swear allegiance to the Lord Almighty. One of them will be called the City of the Sun." NIV translation
There will be five cities in Egypt that will be Christian cities and the people will speak Hebrew. One of these cities will be a suburb of Cairo. The "City of the Sun" refers to Heliopolis which was a chief cult center of Ra and was the capital of the province of Goshen. Today, it is a suburb of Cairo.