The source of most ocean waves is: the motion of the atmosphere.
Ocean waves are primarily generated by the wind as it blows across the surface of the ocean. This interaction between the air and the water creates friction, transferring energy from the wind to the water. The wind's energy causes ripples to form, and these ripples develop into waves. The larger and more sustained the wind, the larger and more powerful the waves.
While the gravitational pull of the moon influences tides and ocean currents play a role in some wave formation, the primary force driving the majority of ocean waves is the motion of the atmosphere, particularly the wind interacting with the water surface.