The Earth rotates in front of the Sun on an imaginary line called itsaxisThis is an imaginary line that something rotates around. . It takes 24 hours or one day to make a rotation.
When parts of the Earth face the Sun, it's daytime. When they are in the shade, it's night time.