Wind, mostly. And the moon's gravity, but mostly wind.
The combined gravitational forces of the moon, sun and the rotation of the earth cause the ocean to have waves.
+++
NO! Surface waves are caused solely by wind action. The Moon, Sun and rotation are responsible for the tides, not waves.
.
Tsunami are displacements from undersea earthquakes or less commonly, sea-floor mud-slides on steep slopes or very rarely, underwater volcanic collapses during eruptions such as as that of Krakatau in the late 19C.
Wind, mostly. And the moon's gravity, but mostly wind.
waves
the wind
Ocean Waves
waves
it causes current waves.
Winds and subsea movement of water.
Mostly its wind.
Mostly its wind.
Surface gravity waves not created by wind
Ocean waves are what causes weathering and erosion on the coast. The force of the waves can create cracks in rocks and break them apart into smaller rockogjswziys.
These waves are called "Tsunami" Note , Earthquakes CAN cause giant waves (not all sub sea earthquakes do this). Note also that there are other causes of Tsunami.
Ocean waves created by energy in the water are the waves that can be found in the ocean.