The earth is 150 million km away from the sun. It is one of nine planets that around the sun.
Ocean tides are caused by the pull of the moon.