The sun appears to rise in the east and set in the west due to the rotation of the Earth. As the Earth rotates on its axis from west to east, it gives the illusion that the sun moves across the sky from east to west. This daily movement of the sun is a result of the Earth's 24-hour rotational period.