As the globe turns, your location moves into the light (day), then out of the light (night). You’ve just created day and night!
The Earth experiences day and night due to its rotation on its axis and its orbit around the Sun. The combination of these two movements results in the changing amounts of sunlight that reach the Earth's surface, creating the cycle of day and night. what causes the earth to have day and night