The correct option is A rotation of the Earth
As earth is rotating on its own axis so when its half part is exposed to sun receives light due to which it is day at that part and hidden half part suffers from darkness called night.And as earth rotates these halves keep changing so that's why sometimes there is day at a place and at the same place sometimes there is night.