Many people assume that summer happens when the Earth is closest to the Sun and winter when it is furthest away. It is an understandable idea, but it is not correct. The real cause of the seasons is the tilt of our planet, and it explains some features of the year that distance alone cannot.
The tilted Earth
The Earth spins on an axis that is tilted at roughly twenty-three and a half degrees compared with its path around the Sun. This tilt stays pointing in the same direction in space throughout the year. As a result, for part of the year the northern hemisphere leans towards the Sun, and for the other part it leans away.
Angle and day length
When your hemisphere is tilted towards the Sun, sunlight strikes the ground more directly, concentrating its energy on a smaller area. Days are also longer, giving the land and seas more hours to warm up. In winter, the Sun sits lower in the sky, its light is spread more thinly, and the shorter days allow more time for heat to escape.
Why distance is not the answer
The Earth's orbit is only slightly oval, so its distance from the Sun changes by a relatively small amount over the year. In fact, the Earth is closest to the Sun in early January, during the northern hemisphere's winter. The clearest evidence is that the two hemispheres have opposite seasons at the same time, which could not happen if distance were the main cause.
Solstices and equinoxes
The solstices in June and December mark the points when one hemisphere is tilted most towards the Sun, bringing the longest and shortest days. The equinoxes in March and September fall between them, when day and night are roughly equal in length across the globe. Near the equator, the tilt makes less difference, so seasons there are often defined by rainfall rather than temperature.