Latitude:
* Equator (0°): The sun rises due east and sets due west throughout the year.
* Northern Hemisphere: The sun rises north of east and sets north of west during summer, and rises south of east and sets south of west during winter. The farther north you go, the more pronounced this effect becomes.
* Southern Hemisphere: The sun rises south of east and sets south of west during summer, and rises north of east and sets north of west during winter.
Season:
* Summer Solstice: In the Northern Hemisphere, the sun reaches its highest point in the sky and appears to rise farthest north of east and set farthest north of west. The opposite occurs in the Southern Hemisphere.
* Winter Solstice: In the Northern Hemisphere, the sun reaches its lowest point in the sky and appears to rise farthest south of east and set farthest south of west. The opposite occurs in the Southern Hemisphere.
* Equinoxes: The sun rises due east and sets due west on both the Spring and Autumn Equinoxes for all locations on Earth.
In summary: The direction of sunrise and sunset varies based on your location's latitude and the time of year. It's a fascinating result of Earth's tilt and its orbit around the sun!