The  Flood narrative is complex. Human society had populated the world, and initially fulfilled its mission, until they lost their way, and degenerated to a point where things needed to start over.

What went wrong?

The Torah emphasizes Noach’s role as a partner with all living things:

צֵא, מִן-הַתֵּבָה–אַתָּה… כָּל-הַחַיָּה אֲשֶׁר-אִתְּךָ מִכָּל-בָּשָׂר, בָּעוֹף וּבַבְּהֵמָה וּבְכָל-הָרֶמֶשׂ הָרֹמֵשׂ עַל-הָאָרֶץ–הוצא (הַיְצֵא) אִתָּךְ; וְשָׁרְצוּ בָאָרֶץ, וּפָרוּ וְרָבוּ עַל-הָאָרֶץ – Leave the Ark; you… and every creature with you. Every creature, bird, animal and insect that creeps on the earth, should leave with you. They will multiply and infest the earth. (8:16-17)

The Malbim explains that the partnership aspect was beyond the fact their survival was due to the fact they were physically with him.

Humans are created with the gift of free will. When Adam and Eve, as the only people in the world, corrupted their moral freedom, the consequences were dire, and the same almost happened once again; an entire generation collectively squandered their moral consciousness, defeating the purpose of their creation. The moral fabric of the world disintegrated to a point where the Torah  states that all hope was lost:

כִּי-הִשְׁחִית כָּל-בָּשָׂר אֶת-דַּרְכּוֹ, עַל-הָאָרֶץ – that every living creature had lost its way… (6:12)

Noach reclaimed and preserved decency, and “humanity” – in the true sense of the word, by exerting his moral freedom for honesty and goodness. As the sole creature not to lose his way, existence could linger on exclusively for his sake. The entire planet owed him a life debt, and this is the partnership the Torah refers to:

צֵא, מִן-הַתֵּבָה–אַתָּה… כָּל-הַחַיָּה אֲשֶׁר-אִתְּךָ מִכָּל-בָּשָׂר, בָּעוֹף וּבַבְּהֵמָה וּבְכָל-הָרֶמֶשׂ הָרֹמֵשׂ עַל-הָאָרֶץ–הוצא (הַיְצֵא) אִתָּךְ; וְשָׁרְצוּ בָאָרֶץ, וּפָרוּ וְרָבוּ עַל-הָאָרֶץ – Leave the Ark – you… Every living creature with you. Every creature, bird, animal and insect that creeps on the earth, should leave with you, and they will multiply and infest the earth. (8:16-17)

Nature literally survived  through him – אִתְּךָ. It therefore follows that after this event, humanity is permitted to consume meat for the very first time.

By rising above a failing world, Noach set humanity aside as being the noblest of all creatures.

One of the most incredible miracles of all times occurs, the Splitting of the Sea, and it’s conclusion happens the same way it began:

וַיֹּאמֶר ה אֶל מֹשֶׁה נְטֵה אֶת יָדְךָ עַל הַיָּם וְיָשֻׁבוּ הַמַּיִם עַל מִצְרַיִם עַל רִכְבּוֹ וְעַל פָּרָשָׁיו – Hashem said to Moshe; “Stretch your hand over the sea, and the water will crash back onto the Egyptians, their chariots, and their horseriders. (14:26)

R’ Shimshon Pinkus wonders why it was necessary for him to lift his hand to “close” the sea, as he did when it came to splitting it. The miracle would be over when the last Jew went ashore, and the sea returning to its normal natural state would seem to be something that just ought to “happen”.

R’ Shimshon Pinkus explains that Hashem was trying to teach the Jews an essential lesson about “natural” occurrences. Quite understandably, splitting the sea requires an action of some sort because it was a miracle; but the returning of the sea to its natural state is equally miraculous!

We take the laws of nature and physics for granted – Hashem was expressing that we ought not to. There is no fundamental reason which causes things to happen; it is all Hashem. This was the underlying message of Hashem’s command for Moshe to stretch out his hand, in the same way, to both start and conclude the miracle.

They are the same from Hashem’s perspective.