The Ring Nebula (also catalogued as Messier 57, M57 or NGC 6720) is a planetary nebula in the northern constellation of Lyra. Such objects are formed when a shell of ionized gas is expelled into the surrounding interstellar medium by a red giant star, which was passing through the last stage in its evolution before becoming a white dwarf.
This nebula was discovered by the French astronomer Antoine Darquier de Pellepoix in January 1779, who reported that it was “…as large as Jupiter and resembles a planet which is fading“. Later the same month, fellow French astronomer Charles Messier independently found the same nebula while searching for comets. It was then entered into his catalogue as the 57th object. Messier and German-born astronomer William Herschel speculated that the nebula was formed by multiple faint stars that were unresolvable with his telescope.
Content retrieved from: https://en.wikipedia.org/wiki/Ring_Nebula.