Why do oceans have waves?

Waves are created by energy passing through water, causing it to move in a circular motion. Disturbances such as wind friction, earthquakes, and the gravitational pull of the sun and moon create waves in the ocean.