Both the Moon and the Sun influence the tides on Earth. The moon has a much greater influence though. Why is that?