In 1919, Hubble was offered a staff position at the Carnegie Institution for Science's Mount Wilson Observatory, near Pasadena, California, by George Ellery Hale, the founder and director of the observatory. Hubble remained on staff at Mount Wilson until his death in 1953. Shortly before his death, Hubble became the first astronomer to use the newly completed giant 200-inch (5.1 m) reflector Hale Telescope at the Palomar Observatory near San Diego, California.
Edwin Hubble's arrival at Mount Wilson Observatory, California in 1919 coincided roughly with the completion of the 100-inch (2.5 m) Hooker Telescope, then the world's largest. At that time, the prevailing view of the cosmos was that the universe consisted entirely of the Milky Way Galaxy. Using the Hooker Telescope at Mt. Wilson, Hubble identified Cepheid variables (a kind of star that is used as a means to determine the distance from the galaxy – see also standard candle) in several spiral nebulae, including the Andromeda Nebula and Triangulum. His observations, made in 1924, proved conclusively that these nebulae were much too distant to be part of the Milky Way and were, in fact, entire galaxies outside our own, suspected by researchers at least as early as 1755 when Immanuel Kant's General History of Nature and Theory of the Heavens appeared. This idea had been opposed by many in the astronomy establishment of the time, in particular by Harvard University-based Harlow Shapley. Despite the opposition, Hubble, then a thirty-five-year-old scientist, had his findings first published in The New York Times on November 23, 1924, then presented them to other astronomers at the January 1, 1925 meeting of the American Astronomical Society. Hubble's results for Andromeda were not formally published in a peer-reviewed scientific journal until 1929.