Light travels under an inverse square law. That is if you double the distance you get 1/4 the light.
We can use this property of light to measure the distance to objects if we have a way of determining their intrinsic (actual) brightness and measure their apparent brightness here on Earth.