Prophets, Joshua, 24:7: And they cried to the Lord, and He put darkness between you and the Egyptians, and brought the sea upon him, and it covered him. And your eyes have seen what I have done in Egypt. And you sojourned in the wilderness many days.
Darkness is really great salvation because the people of Israel had no strength to escape from Egypt. Only the darkness that the Creator created in Egypt gave them the opportunity to quietly escape from the Egyptians.
Now as well, it is pushing a person as much as possible to exit egoism (Egypt) so that he will try to escape out of it by any means.
Question: Why are we shown the power of the Creator by the fact that He brings the sea upon the Egyptians, and they are drowning in it?
Answer: The Torah speaks of a person who is fighting to rise above his egoism. The fact that the Egyptians (egoistic desires) perish in the sea, demonstrates to him that this is possible.
From KabTV’s “Secrets of the Eternal Book” 9/6/21