The eighteenth-century German philosopher Immanuel Kant had conjectured that Messier's nebulae were distant "island universes" outside our Milky Way galaxy, but many scientists in the early twentieth century disagreed.
Chapter 3, The Beginning Of Modern Cosmology, p. 54 - Reinventing Gravity (2008)