Rotation. The Earth rotates around the sun on it’s axis. Depending how far north or south you live, and the angle of the sun at different times of year gives you the amount of daylight or darkness you will receive. So the length of day or night depends on how much the sun is able to reach the spot on a round object such as the planet Earth.