The Earth spins like a top. When part of the Earth faces the Sun, it’s daytime there, and when that same part turns away, it becomes nighttime. Imagine spinning around with your friend holding a flashlight: you get light on one side and darkness on the other.