Sunlight shines on one side of Earth, but the other side faces away from the sun and is dark. Earth rotates on its axis once every 24 hours, so the part of the Earth that is in the light (day) rotates into the darkness (night).