The moon orbits the Earth and the Earth orbits the Sun. During a Solar Eclipse the Moon comes inbetween the Earth and the Sun to block out the sun for parts of the Earth.