On this date, the sun's rays hit the northern hemisphere more directly than at any other time of the year. Due to this maximum tilt towards the sun, the sun is at its highest point in the sky. This leads to the day being the longest.