Rotation of earth around its axis causes day and night.
Earth goes around itself like a spinning top. It takes earth 24 hours to around itself. It will be day on the side of the earth that faces sun. That "day" side will rotate itself out where it won't face the sun any more causing "night"