What causes the change within every twenty four hours from dau to night 8n earth

The change from day to night on Earth is caused by the rotation of the Earth on its axis. As the Earth rotates, different parts of the planet are facing towards or away from the Sun, causing the cycle of day and night. This rotation takes approximately 24 hours to complete, resulting in one full day-night cycle.