Answer :
it takes the Earth 24 hours to rotate on its axis and this rotation is what causes there to be days and nights.
It takes the earth 24 hours to rotate on its Axis. As Earth rotates, the Moon's gravity causes the oceans to seem to rise and fall. It also causes Days and Nights.