It is only the sun that shines by itself in the solar system. Earth and moon do not emit light themselves. The earth and the moon only reflect the light of the sun. Because the Earth and Moon are round, areas that receive sunlight appear bright, and areas that do not receive light appear dark.