The sun warms the Earth, making it habitable for people and animals. But that's not all it does, and it affects a much larger area of space. The heliosphere, the area of space influenced by the sun, is over a hundred times larger than the distance from the sun to the Earth.
Source:
phys.org