According to Exodus 14, the Israelites camped at Pi-hahiroth before crossing the sea.
The text places Pi-hahiroth between Migdol and the sea, opposite Baal-zephon. Pharaoh’s army pursued the Israelites and caught up with them while they were camped there. The Israelites then found themselves between the approaching Egyptian force and the water.
Moses told the frightened people to stand firm, and the biblical narrative describes the sea opening so that they could pass through on dry ground. After the Israelites crossed, the pursuing Egyptians entered and were overwhelmed when the waters returned.
Pi-hahiroth is a difficult place name because its exact historical location is uncertain. Proposed identifications have included areas near the eastern Nile Delta or the northwestern Sinai region. The name should not be confused with Succoth, the first named stopping place after the Israelites left Rameses, or with Rephidim, a later wilderness campsite.