* The Earth rotates: Our planet spins on its axis, completing a full rotation every 24 hours. This rotation is what causes day and night.
* The sun's position: As the Earth rotates, different parts of the planet face the sun. When your location faces the sun, it's daytime. When your location faces away from the sun, it's nighttime.
* The illusion of sunset: When the Earth rotates so that your location is moving away from the sun, it appears as if the sun is sinking below the horizon – this is what we call sunset.
Think of it like this: Imagine you're on a spinning carousel. As you spin, different things in your view come into focus and then disappear from view. The sun is like that, but instead of a carousel, it's the Earth rotating!