The cause of the phases of the moon is a cycle that is close to the length of a month. The cycle is called the synodic month and it is the time it takes for the moon to complete one orbit around the Earth and return to the same position relative to the sun. The synodic month is about 29.5 days long.