The reason for the length of day and night is the diurnal rotation because the sun cannot illuminate the whole earth at once when the earth is lit on one side it is day and when it is on the other side it is night