Outside of the Solar System distances are even greater so we use a measurement of distance called the light year.
Distances in space are so enormous so it is more appropriate to use the light year as the unit of distance. We know light travels a distance of 300 million metres in one second (speed of light in a vacuumis ) so in one year it will cover a distance of metres.
One light year is the equivalent distance light travels in one year. Other than the Sun the nearest star to us is Proxima Centauri which is 4.2 light years from Earth. Light from our Sun takes only 8 minutes to reach us.