It is God who confines the sea behind bars and commands it mighty waves where to stop.
Job 38:8-11 (KJV)
8 Or who shut up the sea with doors, when it brake forth, as if it had issued out of the womb?
9 When I made the cloud the garment thereof, and thick darkness a swaddlingband for it,
10 And brake up for it my decreed place, and set bars and doors,
11 And said, Hitherto shalt thou come, but no further: and here shall thy proud waves be stayed?