What Causes the Moon Phases?
The Moon's phases are caused by the changing angle of sunlight hitting the Moon as it orbits Earth. The Moon does not produce its own light — it reflects sunlight. As the Moon travels around Earth once every 27.3 days (the sidereal month), the angle between the Sun, Earth, and Moon changes, causing different portions of the lunar surface to be illuminated from our perspective.
It takes the Moon slightly longer — 29.5 days — to complete a full cycle of phases (the synodic month) because Earth is also moving around the Sun. By the time the Moon returns to the same position relative to the stars, Earth has moved about 27 degrees along its orbit, so the Moon needs an extra two days to catch up to the same Sun-Earth-Moon alignment.
A common misconception is that the Moon's phases are caused by Earth's shadow falling on the Moon. This is incorrect. Earth's shadow only falls on the Moon during a lunar eclipse, which happens only when the Sun, Earth, and Moon are perfectly aligned — about twice per year, not every month. The phases are purely a function of the Moon's orbit changing how much of its sunlit side faces Earth.