Which type of wave is most affected by gravity from the sun and the moon

Tidal waves.

The type of wave that is most affected by gravity from the sun and the moon is the ocean tide. Tides are rhythmic changes in the elevation of the ocean surface that are primarily caused by the gravitational forces exerted by the sun and the moon. These gravitational forces result in the deformation of the Earth's oceans, leading to the formation of high and low tide zones.