The alternation of day and night is primarily caused by the rotation of the Earth on its axis. As the Earth spins, different parts of its surface are exposed to the Sun's light at different times, creating the cycle of day and night.