The direct cause is Earth's – the spinning of our planet around its own imaginary axis. This axis runs from the North Pole to the South Pole.
When your location on Earth faces the Sun, it catches the solar rays, resulting in light and warmth. why does the earth experience day and night