Here's the breakdown:
* The Earth rotates: Our planet spins on its axis, taking about 24 hours to complete one rotation. This rotation is what causes day and night.
* Daytime: When the sun is facing our side of the Earth, it's daytime. The sun's light is so strong that it washes out the light from distant stars, making them invisible.
* Nighttime: When the Earth rotates so that the sun is facing the other side of the planet, it's nighttime for us. The sun's light is blocked, and we can see the stars shining in the darkness.
Think of it like this: If you were standing in a room with a very bright lamp, you wouldn't be able to see the faint light of a candle. But, if you turned the lamp off, the candle's light would be visible. It's the same with the stars! They're always there, but the sun's light makes them invisible during the day.