The earth's nearby moon is about 2.17 tines as effective as the m ore massive sun in raising tides on the earth, even though the sun exerts a much greater total force on the earth than does the moon.
Tides are raised in the earth's solid crust and atmosphere as well as in the oceans. Every body in the universe has some tidal effect.
Because gravity tugs on nearby things more strongly than on distant things, the oceans closest to the moon feel the greatest attraction to the moon. Being fluid, these nearby oceans move upward in response to the moon's pull, until there is a balance between the upward force from the moon and the downward force from the earth.
Bibliography
Internet: