The word "He" in these verses refers to Yahweh.
Here the Psalmist speaks of the dangers of his enemies as if they were huge waves or forceful waters, from which Yahweh has rescued him.