The Triangulum Galaxy, placed in the slot number 33 of the Messier catalog, takes its name from the constellaion it is located in: the small Triangulum constellation.
Together with the Andromeda Galaxy (M 31), the Milky Way and other minor galaxies they make up our cosmic neighborhood: the so called "Local Group".
The Triangulum Galaxy lies at 2,9 mln l.y. from Earth, not that much considering the scale of the universe!