Lunar phases occur as the Moon orbits Earth, changing the viewing perspective of the Moon's illuminated hemisphere. Lunar eclipses take place when Earth, the Sun, and Moon are almost exactly aligned.