After years of observation, Hubble made an extraordinary discovery. In 1923 he spotted a Cepheid variable star in what was known as the Andromeda Nebula. Using Leavitt's techniques, he was able to show that Andromeda was nearly 1 million light years away and clearly a galaxy in its own right, not a gas cloud.