It was because they trusted God that when the Israelite people walked through where the Red Sea had been, it was as though they walked on dry land! But, when the army of Egypt also attempted to cross that same water, they drowned, because the sea came back and flooded them!