How Waves are Formed?

Most of the waves in the ocean are formed by wind. Waves can also be formed by earthquakes and by gravity. Gravity is responsible for the tides going in and out and the wave formation caused by the tides.