In the context of the Earth-Sun system, L2 is situated about 1.5 million kilometers away from the Earth in the direction opposite to the Sun. This location allows spacecraft stationed at L2 to have a continuous line of sight of both the Earth and the Sun, making it an ideal spot for certain types of astronomical observations.