At any point of time, half the Earth is facing the Sun towards its light which will experience day. The other half is shaded, experiencing night. The Earth rotates on its axis which takes 24 hours. During that time, the place where you live turns into the sunlight for part of the time (day) and then shadow (night).
All text of this article available under the terms of the GNU Free Documentation License (see Copyrights for details).