According to the Exodus account, Moses held out his staff and the Red Sea was parted by God. The Israelites walked on dry ground and crossed the sea, followed by the Egyptian army. Moses again moved his staff once the Israelites had crossed and the sea closed again, drowning the whole Egyptian army.