Answer
Astronomers were only able to measure the distances to objects within a few hundred light years until the discovery of Cepheid variable stars. Cepheid variables are stars that change in brightness over time, and the period of their brightness changes is directly related to their absolute luminosity.