Answer the question based on the following text.

Question:


Which planet does the sun have the most gravity effect on Mars or Mercury? 


Text:

The Moon has a greater effect on the tides because, although it is much smaller than the Sun, it is much closer.